1100
Is it is possible to exclude the non-working days when displaying the histogram using the exBarEffort for exHistOverAllocation type

<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
function Init()
{
	G2antt1.BeginUpdate();
	G2antt1.Columns.Add("Tasks");
	var var_Chart = G2antt1.Chart;
		var_Chart.LevelCount = 2;
		var_Chart.PaneWidth(0) = 40;
		var_Chart.FirstVisibleDate = "6/20/2005";
		var_Chart.HistogramVisible = true;
		var_Chart.HistogramHeight = 64;
		var_Chart.HistogramView = 112;
		var var_Bar = var_Chart.Bars.Item("Split");
			var_Bar.Pattern = 6;
			var_Bar.Shape = 18;
			var_Bar.Color = 8388608;
		var var_Bar1 = var_Chart.Bars.Add("Task:Split");
			var_Bar1.Color = 8388608;
			var_Bar1.Shortcut = "WorkingTask";
			var_Bar1.Pattern = 6;
			var_Bar1.HistogramPattern = 6;
			var_Bar1.HistogramType = 1;
		var var_Bar2 = var_Chart.Bars.Item("Task");
			var_Bar2.Color = 16711680;
			var_Bar2.Pattern = 5;
			var_Bar2.HistogramType = 1;
			var_Bar2.HistogramPattern = 5;
	var var_Items = G2antt1.Items;
		var h = var_Items.AddItem("True");
		var_Items.AddBar(h,"WorkingTask","6/23/2005","6/29/2005",null,null);
		var_Items.ItemBar(h,"",21) = 4;
		var_Items.ItemBar(h,"",20) = true;
		h = var_Items.AddItem("False");
		var_Items.AddBar(h,"Task","6/23/2005","6/29/2005",null,null);
		var_Items.ItemBar(h,"",21) = 4;
		var_Items.ItemBar(h,"",20) = false;
	G2antt1.EndUpdate();
}
</SCRIPT>
</BODY>

1099
I display numbers in my chart, but the AddBar requires a date how can I add a bar
<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
function Init()
{
	G2antt1.BeginUpdate();
	G2antt1.Columns.Add("Tasks");
	var var_Chart = G2antt1.Chart;
		var_Chart.PaneWidth(false) = 0;
		var_Chart.NonworkingDays = 0;
		var_Chart.FirstVisibleDate = 0;
		var_Chart.ToolTip = "";
		var var_Level = var_Chart.Level(0);
			var_Level.Label = "<%i%>";
			var_Level.ToolTip = "";
		var_Chart.UnitWidth = 24;
	var var_Items = G2antt1.Items;
		var_Items.AddBar(var_Items.AddItem("Task 1"),"Task",2,4,null,null);
		var_Items.AddBar(var_Items.AddItem("Task 2"),"Task",6,10,null,null);
	G2antt1.EndUpdate();
}
</SCRIPT>
</BODY>

1098
I display numbers in the chart's header but do not want to get displayed negative numbers. How can i do that
<BODY onload="Init()">
<SCRIPT FOR="G2antt1" EVENT="DateChange()" LANGUAGE="JScript">
	G2antt1.Chart.FirstVisibleDate = 0;
	G2antt1.ScrollPartEnable(2,1024) = false;
</SCRIPT>

<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
function Init()
{
	G2antt1.BeginUpdate();
	var var_Chart = G2antt1.Chart;
		var_Chart.PaneWidth(false) = 0;
		var_Chart.NonworkingDays = 0;
		var_Chart.FirstVisibleDate = 0;
		var_Chart.ToolTip = "";
		var var_Level = var_Chart.Level(0);
			var_Level.Label = "<%i%>";
			var_Level.ToolTip = "<%i%>";
		var_Chart.UnitWidth = 24;
	G2antt1.EndUpdate();
}
</SCRIPT>
</BODY>

1097
How can I display numbers in the chart's header instead dates

<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
function Init()
{
	G2antt1.BeginUpdate();
	var var_Chart = G2antt1.Chart;
		var_Chart.PaneWidth(false) = 0;
		var_Chart.NonworkingDays = 0;
		var_Chart.FirstVisibleDate = 0;
		var_Chart.ToolTip = "";
		var var_Level = var_Chart.Level(0);
			var_Level.Label = "<%i%>";
			var_Level.ToolTip = "";
		var_Chart.UnitWidth = 24;
	G2antt1.EndUpdate();
}
</SCRIPT>
</BODY>

1096
How can I create a bar that's not sizable, or can not be resized by default similar with milestone
<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
function Init()
{
	G2antt1.BeginUpdate();
	G2antt1.Columns.Add("Task");
	var var_Chart = G2antt1.Chart;
		var_Chart.PaneWidth(false) = 0;
		var_Chart.FirstVisibleDate = "12/24/2000";
		var_Chart.LevelCount = 2;
		var var_Bar = var_Chart.Bars.Add("Custom");
			var_Bar.Shape = 0;
			var_Bar.StartShape = 1;
			var_Bar.EndShape = 0;
	var var_Items = G2antt1.Items;
		var_Items.AddBar(var_Items.AddItem(""),"Custom","1/2/2001","1/2/2001","K1","This TYPE of bar can not be resized.");
	G2antt1.EndUpdate();
}
</SCRIPT>
</BODY>

1095
Is it possible to hide the non-working parts for items using the ItemNonworkingUnits, even if set the ShowNonworkingUnits, ShowNonworkingDates on False

<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
function Init()
{
	G2antt1.BeginUpdate();
	G2antt1.Columns.Add("Task");
	var var_Chart = G2antt1.Chart;
		var_Chart.Bars.Add("Task:Split").Shortcut = "Task";
		var_Chart.FirstVisibleDate = "12/27/2000";
		var_Chart.PaneWidth(false) = 64;
		var_Chart.LevelCount = 2;
		var_Chart.ShowNonworkingUnits = false;
		var_Chart.ShowNonworkingDates = false;
		var_Chart.NonworkingDaysPattern = 0;
	var var_Items = G2antt1.Items;
		var h1 = var_Items.AddItem("Task 1");
		var_Items.AddBar(h1,"Task","1/2/2001","1/4/2001","K1",null);
		var h2 = var_Items.AddItem("Task 2");
		var_Items.ItemNonworkingUnits(h2,false) = "weekday(value) = 1";
		var_Items.AddBar(h2,"Task","1/4/2001","1/6/2001","K2",null);
		var_Items.AddLink("L1",h1,"K1",h2,"K2");
		var h3 = var_Items.AddItem("Task 3");
		var_Items.AddBar(h3,"Task","1/8/2001","1/10/2001","K3",null);
		var_Items.AddLink("L2",h2,"K2",h3,"K3");
	G2antt1.EndUpdate();
}
</SCRIPT>
</BODY>

1094
Is it possible to show the non-working parts for certain items, even if I hide the default non-working part

<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
function Init()
{
	G2antt1.BeginUpdate();
	G2antt1.Columns.Add("Task");
	var var_Chart = G2antt1.Chart;
		var_Chart.Bars.Add("Task:Split").Shortcut = "Task";
		var_Chart.FirstVisibleDate = "12/27/2000";
		var_Chart.PaneWidth(false) = 64;
		var_Chart.LevelCount = 2;
		var_Chart.ShowNonworkingUnits = false;
		var_Chart.ShowNonworkingDates = false;
	var var_Items = G2antt1.Items;
		var h1 = var_Items.AddItem("Task 1");
		var_Items.AddBar(h1,"Task","1/2/2001","1/4/2001","K1",null);
		var h2 = var_Items.AddItem("Task 2");
		var_Items.ItemNonworkingUnits(h2,false) = "weekday(value) = 1";
		var_Items.AddBar(h2,"Task","1/4/2001","1/6/2001","K2",null);
		var_Items.AddLink("L1",h1,"K1",h2,"K2");
		var h3 = var_Items.AddItem("Task 3");
		var_Items.AddBar(h3,"Task","1/8/2001","1/10/2001","K3",null);
		var_Items.AddLink("L2",h2,"K2",h3,"K3");
	G2antt1.EndUpdate();
}
</SCRIPT>
</BODY>

1093
How can I hide the non-working part of the chart
<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
function Init()
{
	G2antt1.BeginUpdate();
	var var_Chart = G2antt1.Chart;
		var_Chart.FirstVisibleDate = "1/1/2008";
		var_Chart.PaneWidth(false) = 0;
		var_Chart.LevelCount = 2;
		var_Chart.ShowNonworkingUnits = false;
		var_Chart.ShowNonworkingDates = false;
	G2antt1.EndUpdate();
}
</SCRIPT>
</BODY>

1092
Is it possible to let users selects cells as in Excel
<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
function Init()
{
	G2antt1.BeginUpdate();
	G2antt1.FullRowSelect = 1;
	G2antt1.SingleSel = false;
	G2antt1.ReadOnly = -1;
	G2antt1.MarkSearchColumn = false;
	G2antt1.ShowFocusRect = false;
	G2antt1.LinesAtRoot = -1;
	G2antt1.SelForeColor = 0;
	G2antt1.SelBackColor = 15917512;
	var var_Columns = G2antt1.Columns;
		var_Columns.Add("A");
		var var_Column = var_Columns.Add("B");
			var_Column.AllowSizing = false;
			var_Column.Width = 24;
		var var_Column1 = var_Columns.Add("C");
			var_Column1.AllowSizing = false;
			var_Column1.Width = 24;
			var_Column1.Def(0) = 1;
			var_Column1.PartialCheck = true;
		var var_Column2 = var_Columns.Add("D");
			var_Column2.AllowSizing = false;
			var_Column2.Width = 24;
			var_Column2.Def(1) = 1;
	var var_Items = G2antt1.Items;
		var h = var_Items.InsertItem(null,null,"Group 1");
		var h1 = var_Items.InsertItem(h,null,16);
		var_Items.CellValue(h1,1) = 17;
		h1 = var_Items.InsertItem(h,null,2);
		var_Items.CellValue(h1,1) = 11;
		h1 = var_Items.InsertItem(h,null,2);
		var_Items.ItemBackColor(h1) = 15790320;
		var_Items.CellValue(h1,1) = 9;
		var_Items.ExpandItem(h) = true;
		h = var_Items.InsertItem(null,null,"Group 2");
		var_Items.CellValueFormat(h,2) = 1;
		h1 = var_Items.InsertItem(h,null,16);
		var_Items.CellValue(h1,1) = 9;
		h1 = var_Items.InsertItem(h,null,12);
		var_Items.CellValue(h1,1) = 11;
		h1 = var_Items.InsertItem(h,null,2);
		var_Items.CellValue(h1,1) = 2;
		var_Items.ExpandItem(h) = true;
		var_Items.SelectItem(h) = true;
	G2antt1.EndUpdate();
}
</SCRIPT>
</BODY>

1091
How can I hide a date from the chart view
<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
function Init()
{
	G2antt1.BeginUpdate();
	var var_Chart = G2antt1.Chart;
		var_Chart.FirstVisibleDate = "1/1/2008";
		var_Chart.PaneWidth(false) = 0;
		var_Chart.LevelCount = 2;
		var_Chart.AllowInsideZoom = true;
		var_Chart.AllowResizeInsideZoom = false;
		var_Chart.InsideZoomOnDblClick = false;
		var var_InsideZooms = var_Chart.InsideZooms;
			var_InsideZooms.SplitBaseLevel = false;
			var_InsideZooms.DefaultWidth = 0;
			var_InsideZooms.Add("1/4/2008");
			var_InsideZooms.Add("1/5/2008");
			var_InsideZooms.Add("1/6/2008");
		var_Chart.SelectLevel = 1;
		var_Chart.SelectDate("1/5/2008") = true;
	G2antt1.EndUpdate();
}
</SCRIPT>
</BODY>

1090
Can the SchedulePDM displays and edit the working units for my bars

<BODY onload="Init()">
<SCRIPT FOR="G2antt1" EVENT="BarResizing(Item,Key)" LANGUAGE="JScript">
	G2antt1.Items.SchedulePDM(Item,Key);
</SCRIPT>

<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
function Init()
{
	G2antt1.BeginUpdate();
	G2antt1.Items.AllowCellValueToItemBar = true;
	G2antt1.Columns.Add("Task");
	var var_Column = G2antt1.Columns.Add("Working");
		var_Column.Def(18) = 258;
		var_Column.Editor.EditType = 4;
	var var_Chart = G2antt1.Chart;
		var_Chart.Bars.Add("Task:Split").Shortcut = "Task";
		var_Chart.FirstVisibleDate = "12/28/2000";
		var_Chart.PaneWidth(false) = 96;
		var_Chart.AllowLinkBars = false;
		var_Chart.AllowCreateBar = 0;
	var var_Items = G2antt1.Items;
		var h1 = var_Items.AddItem("Task 1");
		var_Items.AddBar(h1,"Task","1/2/2001","1/4/2001","",null);
		var h2 = var_Items.AddItem("Task 2");
		var_Items.AddBar(h2,"Task","1/2/2001","1/4/2001","",null);
		var_Items.AddLink("L1",h1,"",h2,"");
		var h3 = var_Items.AddItem("Task 3");
		var_Items.AddBar(h3,"Task","1/2/2001","1/6/2001","",null);
		var_Items.AddLink("L2",h2,"",h3,"");
		var_Items.Link("L2",12) = "FF";
		var_Items.Link("L2",6) = 2;
		var_Items.Link("L2",7) = 2;
		var h4 = var_Items.AddItem("Task 4");
		var_Items.AddBar(h4,"Task","1/2/2001","1/4/2001","",null);
		var_Items.AddLink("L3",h4,"",h3,"");
		var_Items.ItemBar(0,"<*>",20) = true;
		var_Items.SchedulePDM(var_Items.FirstVisibleItem,"");
	G2antt1.EndUpdate();
}
</SCRIPT>
</BODY>

1089
Can the SchedulePDM displays the working units for my bars
<BODY onload="Init()">
<SCRIPT FOR="G2antt1" EVENT="BarResizing(Item,Key)" LANGUAGE="JScript">
	G2antt1.Items.SchedulePDM(Item,Key);
</SCRIPT>

<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
function Init()
{
	G2antt1.BeginUpdate();
	G2antt1.Items.AllowCellValueToItemBar = true;
	G2antt1.Columns.Add("Task");
	G2antt1.Columns.Add("Working").Def(18) = 258;
	var var_Chart = G2antt1.Chart;
		var_Chart.Bars.Add("Task:Split").Shortcut = "Task";
		var_Chart.FirstVisibleDate = "12/28/2000";
		var_Chart.PaneWidth(false) = 96;
		var_Chart.AllowLinkBars = false;
		var_Chart.AllowCreateBar = 0;
	var var_Items = G2antt1.Items;
		var h1 = var_Items.AddItem("Task 1");
		var_Items.AddBar(h1,"Task","1/2/2001","1/4/2001","",null);
		var h2 = var_Items.AddItem("Task 2");
		var_Items.AddBar(h2,"Task","1/2/2001","1/4/2001","",null);
		var_Items.AddLink("L1",h1,"",h2,"");
		var h3 = var_Items.AddItem("Task 3");
		var_Items.AddBar(h3,"Task","1/2/2001","1/6/2001","",null);
		var_Items.AddLink("L2",h2,"",h3,"");
		var_Items.Link("L2",12) = "FF";
		var_Items.Link("L2",6) = 2;
		var_Items.Link("L2",7) = 2;
		var h4 = var_Items.AddItem("Task 4");
		var_Items.AddBar(h4,"Task","1/2/2001","1/4/2001","",null);
		var_Items.AddLink("L3",h4,"",h3,"");
		var_Items.ItemBar(0,"<*>",20) = true;
		var_Items.SchedulePDM(var_Items.FirstVisibleItem,"");
	G2antt1.EndUpdate();
}
</SCRIPT>
</BODY>

1088
Can the SchedulePDM keeps the working units for my bars
<BODY onload="Init()">
<SCRIPT FOR="G2antt1" EVENT="BarResizing(Item,Key)" LANGUAGE="JScript">
	G2antt1.Items.SchedulePDM(Item,Key);
</SCRIPT>

<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
function Init()
{
	G2antt1.BeginUpdate();
	G2antt1.Columns.Add("Task");
	var var_Chart = G2antt1.Chart;
		var_Chart.Bars.Add("Task:Split").Shortcut = "Task";
		var_Chart.FirstVisibleDate = "12/28/2000";
		var_Chart.PaneWidth(false) = 48;
		var_Chart.AllowLinkBars = false;
		var_Chart.AllowCreateBar = 0;
	var var_Items = G2antt1.Items;
		var h1 = var_Items.AddItem("Task 1");
		var_Items.AddBar(h1,"Task","1/2/2001","1/4/2001","K1",null);
		var h2 = var_Items.AddItem("Task 2");
		var_Items.AddBar(h2,"Task","1/2/2001","1/4/2001","K2",null);
		var_Items.AddLink("L1",h1,"K1",h2,"K2");
		var h3 = var_Items.AddItem("Task 3");
		var_Items.AddBar(h3,"Task","1/2/2001","1/6/2001","K3",null);
		var_Items.AddLink("L2",h2,"K2",h3,"K3");
		var_Items.Link("L2",12) = "FF";
		var_Items.Link("L2",6) = 2;
		var_Items.Link("L2",7) = 2;
		var h4 = var_Items.AddItem("Task 4");
		var_Items.AddBar(h4,"Task","1/2/2001","1/4/2001","K4",null);
		var_Items.AddLink("L3",h4,"K4",h3,"K3");
		var_Items.ItemBar(0,"<*>",20) = true;
		var_Items.SchedulePDM(0,"K1");
	G2antt1.EndUpdate();
}
</SCRIPT>
</BODY>

1087
How can I arrange automatically the bars based on their links as soon as user moves the bars
<BODY onload="Init()">
<SCRIPT FOR="G2antt1" EVENT="BarResizing(Item,Key)" LANGUAGE="JScript">
	G2antt1.Items.SchedulePDM(Item,Key);
</SCRIPT>

<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
function Init()
{
	G2antt1.BeginUpdate();
	G2antt1.Columns.Add("Task");
	var var_Chart = G2antt1.Chart;
		var_Chart.FirstVisibleDate = "12/28/2000";
		var_Chart.PaneWidth(false) = 48;
		var_Chart.AllowLinkBars = false;
		var_Chart.AllowCreateBar = 0;
	var var_Items = G2antt1.Items;
		var h1 = var_Items.AddItem("Task 1");
		var_Items.AddBar(h1,"Task","1/2/2001","1/4/2001","K1",null);
		var h2 = var_Items.AddItem("Task 2");
		var_Items.AddBar(h2,"Task","1/2/2001","1/4/2001","K2",null);
		var_Items.AddLink("L1",h1,"K1",h2,"K2");
		var h3 = var_Items.AddItem("Task 3");
		var_Items.AddBar(h3,"Task","1/2/2001","1/6/2001","K3",null);
		var_Items.AddLink("L2",h2,"K2",h3,"K3");
		var_Items.Link("L2",12) = "FF";
		var_Items.Link("L2",6) = 2;
		var_Items.Link("L2",7) = 2;
		var h4 = var_Items.AddItem("Task 4");
		var_Items.AddBar(h4,"Task","1/2/2001","1/4/2001","K4",null);
		var_Items.AddLink("L3",h4,"K4",h3,"K3");
		var_Items.SchedulePDM(0,"K1");
	G2antt1.EndUpdate();
}
</SCRIPT>
</BODY>

1086
How can I arrange automatically the bars based on their links as soon as user moves the bars
<BODY onload="Init()">
<SCRIPT FOR="G2antt1" EVENT="BarResize(Item,Key)" LANGUAGE="JScript">
	G2antt1.Items.SchedulePDM(Item,Key);
</SCRIPT>

<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
function Init()
{
	G2antt1.BeginUpdate();
	G2antt1.Columns.Add("Task");
	var var_Chart = G2antt1.Chart;
		var_Chart.FirstVisibleDate = "1/1/2001";
		var_Chart.PaneWidth(false) = 48;
		var_Chart.AllowLinkBars = false;
		var_Chart.AllowCreateBar = 0;
	var var_Items = G2antt1.Items;
		var h1 = var_Items.AddItem("Task 1");
		var_Items.AddBar(h1,"Task","1/2/2001","1/4/2001","K1",null);
		var h2 = var_Items.AddItem("Task 2");
		var_Items.AddBar(h2,"Task","1/2/2001","1/4/2001","K2",null);
		var_Items.AddLink("L1",h1,"K1",h2,"K2");
		var h3 = var_Items.AddItem("Task 3");
		var_Items.AddBar(h3,"Task","1/2/2001","1/4/2001","K3",null);
		var_Items.AddLink("L2",h2,"K2",h3,"K3");
		var_Items.SchedulePDM(0,"K1");
	G2antt1.EndUpdate();
}
</SCRIPT>
</BODY>

1085
I have some buttons added on the control's scroll bar, how can I can know when the button is being clicked
<BODY onload="Init()">
<SCRIPT FOR="G2antt1" EVENT="ScrollButtonClick(ScrollBar,ScrollPart)" LANGUAGE="JScript">
	alert( ScrollBar );
	alert( ScrollPart );
</SCRIPT>

<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
function Init()
{
	G2antt1.ScrollPartVisible(1,32768) = true;
	G2antt1.ScrollPartVisible(1,16384) = true;
	G2antt1.ScrollPartVisible(1,1) = true;
	G2antt1.ScrollPartVisible(1,2) = true;
	G2antt1.ScrollBars = 5;
}
</SCRIPT>
</BODY>

1084
How do I get notified once the user clicks a hyperlink created using the anchor HTML tag
<BODY onload="Init()">
<SCRIPT FOR="G2antt1" EVENT="AnchorClick(AnchorID,Options)" LANGUAGE="JScript">
	alert( AnchorID );
	alert( Options );
</SCRIPT>

<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
function Init()
{
	G2antt1.Columns.Add("Default").Def(17) = 1;
	var var_Items = G2antt1.Items;
		var_Items.AddItem("This is a link: <aex.com;1>www.exontrol.com</a>");
		var_Items.AddItem("This is a link: <aex.net;2>www.exontrol.net</a>");
}
</SCRIPT>
</BODY>

1083
Is it possible to start editing a cell when double click it
<BODY onload="Init()">
<SCRIPT FOR="G2antt1" EVENT="DblClick(Shift,X,Y)" LANGUAGE="JScript">
	G2antt1.Edit(null);
</SCRIPT>

<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
function Init()
{
	G2antt1.BeginUpdate();
	G2antt1.AutoEdit = false;
	G2antt1.MarkSearchColumn = false;
	G2antt1.Columns.Add("Edit1").Editor.EditType = 1;
	G2antt1.Columns.Add("Edit2").Editor.EditType = 1;
	var var_Items = G2antt1.Items;
		var_Items.CellValue(var_Items.AddItem(1),1) = 2;
	var var_Items1 = G2antt1.Items;
		var_Items1.CellValue(var_Items1.AddItem(3),1) = 4;
	G2antt1.EndUpdate();
}
</SCRIPT>
</BODY>

1082
Is it possible to disable standard single-click behavior for this column, so I manually could call Edit() when needed
<BODY onload="Init()">
<SCRIPT FOR="G2antt1" EVENT="DblClick(Shift,X,Y)" LANGUAGE="JScript">
	G2antt1.Edit(null);
</SCRIPT>

<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
function Init()
{
	G2antt1.BeginUpdate();
	G2antt1.AutoEdit = false;
	G2antt1.MarkSearchColumn = false;
	G2antt1.Columns.Add("Edit1").Editor.EditType = 1;
	G2antt1.Columns.Add("Edit2").Editor.EditType = 1;
	var var_Items = G2antt1.Items;
		var_Items.CellValue(var_Items.AddItem(1),1) = 2;
	var var_Items1 = G2antt1.Items;
		var_Items1.CellValue(var_Items1.AddItem(3),1) = 4;
	G2antt1.EndUpdate();
}
</SCRIPT>
</BODY>

1081
How can I get or restore the old or previously value for the cell being changed
<BODY onload="Init()">
<SCRIPT FOR="G2antt1" EVENT="Change(Item,ColIndex,NewValue)" LANGUAGE="JScript">
	alert( "Old-Value:" );
	alert( G2antt1.Items.CellValue(Item,ColIndex) );
	alert( "New-Value:" );
	alert( NewValue );
</SCRIPT>

<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
function Init()
{
	G2antt1.BeginUpdate();
	G2antt1.MarkSearchColumn = false;
	G2antt1.Columns.Add("Edit1").Editor.EditType = 1;
	G2antt1.Columns.Add("Edit2").Editor.EditType = 1;
	var var_Items = G2antt1.Items;
		var_Items.CellValue(var_Items.AddItem(1),1) = 2;
	var var_Items1 = G2antt1.Items;
		var_Items1.CellValue(var_Items1.AddItem(3),1) = 4;
	G2antt1.EndUpdate();
}
</SCRIPT>
</BODY>

1080
How can I display the number of items being found after filtering
<BODY onload="Init()">
<SCRIPT FOR="G2antt1" EVENT="FilterChange()" LANGUAGE="JScript">
	G2antt1.FilterBarCaption = G2antt1.Items.VisibleCount;
</SCRIPT>

<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
function Init()
{
	G2antt1.BeginUpdate();
	G2antt1.Chart.PaneWidth(true) = 0;
	G2antt1.ColumnAutoResize = true;
	G2antt1.ContinueColumnScroll = 0;
	G2antt1.FocusColumnIndex = 1;
	G2antt1.MarkSearchColumn = false;
	G2antt1.SearchColumnIndex = 1;
	G2antt1.FilterBarPromptVisible = true;
	G2antt1.FilterBarPromptType = 1;
	G2antt1.FilterBarPromptPattern = "london";
	var var_Columns = G2antt1.Columns;
		var_Columns.Add("Name").Width = 96;
		var_Columns.Add("Title").Width = 96;
		var_Columns.Add("City");
	var var_Items = G2antt1.Items;
		var h0 = var_Items.AddItem("Nancy Davolio");
		var_Items.CellValue(h0,1) = "Sales Representative";
		var_Items.CellValue(h0,2) = "Seattle";
		h0 = var_Items.AddItem("Andrew Fuller");
		var_Items.CellValue(h0,1) = "Vice President, Sales";
		var_Items.CellValue(h0,2) = "Tacoma";
		var_Items.SelectItem(h0) = true;
		h0 = var_Items.AddItem("Janet Leverling");
		var_Items.CellValue(h0,1) = "Sales Representative";
		var_Items.CellValue(h0,2) = "Kirkland";
		h0 = var_Items.AddItem("Margaret Peacock");
		var_Items.CellValue(h0,1) = "Sales Representative";
		var_Items.CellValue(h0,2) = "Redmond";
		h0 = var_Items.AddItem("Steven Buchanan");
		var_Items.CellValue(h0,1) = "Sales Manager";
		var_Items.CellValue(h0,2) = "London";
		h0 = var_Items.AddItem("Michael Suyama");
		var_Items.CellValue(h0,1) = "Sales Representative";
		var_Items.CellValue(h0,2) = "London";
		h0 = var_Items.AddItem("Robert King");
		var_Items.CellValue(h0,1) = "Sales Representative";
		var_Items.CellValue(h0,2) = "London";
		h0 = var_Items.AddItem("Laura Callahan");
		var_Items.CellValue(h0,1) = "Inside Sales Coordinator";
		var_Items.CellValue(h0,2) = "Seattle";
		h0 = var_Items.AddItem("Anne Dodsworth");
		var_Items.CellValue(h0,1) = "Sales Representative";
		var_Items.CellValue(h0,2) = "London";
	G2antt1.EndUpdate();
}
</SCRIPT>
</BODY>

1079
How can I highligth the item from the cursor as it moves
<BODY onload="Init()">
<SCRIPT FOR="G2antt1" EVENT="MouseMove(Button,Shift,X,Y)" LANGUAGE="JScript">
	G2antt1.BeginUpdate();
	var h = G2antt1.ItemFromPoint(-1,-1,c,hit);
	var var_Items = G2antt1.Items;
		var_Items.ClearItemBackColor(G2antt1.Background(1000));
		var_Items.ItemBackColor(h) = 15792880;
	G2antt1.Background(1000) = h;
	G2antt1.EndUpdate();
</SCRIPT>

<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
function Init()
{
	G2antt1.BeginUpdate();
	G2antt1.LinesAtRoot = -1;
	G2antt1.DrawGridLines = 1;
	G2antt1.SelBackColor = 15792880;
	G2antt1.SelForeColor = 0;
	G2antt1.ShowFocusRect = false;
	var var_Chart = G2antt1.Chart;
		var_Chart.SelBackColor = 15792880;
	G2antt1.Columns.Add("Items");
	var var_Items = G2antt1.Items;
		var h = var_Items.AddItem("R1");
		var_Items.InsertItem(h,null,"Cell 1.1");
		var_Items.InsertItem(h,null,"Cell 1.2");
		var_Items.ExpandItem(h) = true;
		h = var_Items.AddItem("R2");
		var_Items.InsertItem(h,null,"Cell 2.1");
		var_Items.InsertItem(h,null,"Cell 2.2");
		var_Items.ExpandItem(h) = true;
	G2antt1.EndUpdate();
}
</SCRIPT>
</BODY>

1078
How can I get the item from the cursor
<BODY onload="Init()">
<SCRIPT FOR="G2antt1" EVENT="MouseMove(Button,Shift,X,Y)" LANGUAGE="JScript">
	var h = G2antt1.ItemFromPoint(-1,-1,c,hit);
	alert( "Handle" );
	alert( h );
	alert( "Index" );
	alert( G2antt1.Items.ItemToIndex(h) );
</SCRIPT>

<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
function Init()
{
	G2antt1.BeginUpdate();
	G2antt1.LinesAtRoot = -1;
	G2antt1.DrawGridLines = 1;
	G2antt1.Columns.Add("Items");
	var var_Items = G2antt1.Items;
		var h = var_Items.AddItem("R1");
		var_Items.InsertItem(h,null,"Cell 1.1");
		var_Items.InsertItem(h,null,"Cell 1.2");
		var_Items.ExpandItem(h) = true;
		h = var_Items.AddItem("R2");
		var_Items.InsertItem(h,null,"Cell 2.1");
		var_Items.InsertItem(h,null,"Cell 2.2");
		var_Items.ExpandItem(h) = true;
	G2antt1.EndUpdate();
}
</SCRIPT>
</BODY>

1077
How can I get the column from the cursor, not only in the header
<BODY onload="Init()">
<SCRIPT FOR="G2antt1" EVENT="MouseMove(Button,Shift,X,Y)" LANGUAGE="JScript">
	alert( G2antt1.ColumnFromPoint(-1,0) );
</SCRIPT>

<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
function Init()
{
	G2antt1.BeginUpdate();
	G2antt1.LinesAtRoot = -1;
	G2antt1.Columns.Add("P1");
	G2antt1.Columns.Add("P2");
	G2antt1.DrawGridLines = -1;
	var var_Items = G2antt1.Items;
		var h = var_Items.AddItem("R1");
		var_Items.CellValue(h,1) = "R2";
		var_Items.CellValue(var_Items.InsertItem(h,null,"Cell 1.1"),1) = "Cell 1.2";
		var_Items.CellValue(var_Items.InsertItem(h,null,"Cell 2.1"),1) = "Cell 2.2";
		var_Items.ExpandItem(h) = true;
	G2antt1.EndUpdate();
}
</SCRIPT>
</BODY>

1076
How can I get the column from the cursor
<BODY onload="Init()">
<SCRIPT FOR="G2antt1" EVENT="MouseMove(Button,Shift,X,Y)" LANGUAGE="JScript">
	alert( G2antt1.ColumnFromPoint(-1,-1) );
</SCRIPT>

<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
function Init()
{
	G2antt1.BeginUpdate();
	G2antt1.LinesAtRoot = -1;
	G2antt1.DrawGridLines = -1;
	G2antt1.Columns.Add("P1");
	G2antt1.Columns.Add("P2");
	var var_Items = G2antt1.Items;
		var h = var_Items.AddItem("R1");
		var_Items.CellValue(h,1) = "R2";
		var_Items.CellValue(var_Items.InsertItem(h,null,"Cell 1.1"),1) = "Cell 1.2";
		var_Items.CellValue(var_Items.InsertItem(h,null,"Cell 2.1"),1) = "Cell 2.2";
		var_Items.ExpandItem(h) = true;
	G2antt1.EndUpdate();
}
</SCRIPT>
</BODY>

1075
How can I get the cell's caption from the cursor
<BODY onload="Init()">
<SCRIPT FOR="G2antt1" EVENT="MouseMove(Button,Shift,X,Y)" LANGUAGE="JScript">
	var h = G2antt1.ItemFromPoint(-1,-1,c,hit);
	alert( G2antt1.Items.CellCaption(h,c) );
</SCRIPT>

<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
function Init()
{
	G2antt1.BeginUpdate();
	G2antt1.LinesAtRoot = -1;
	G2antt1.Columns.Add("Items");
	var var_Items = G2antt1.Items;
		var h = var_Items.AddItem("R1");
		var_Items.InsertItem(h,null,"Cell 1.1");
		var_Items.InsertItem(h,null,"Cell 1.2");
		var_Items.ExpandItem(h) = true;
		h = var_Items.AddItem("R2");
		var_Items.InsertItem(h,null,"Cell 2.1");
		var_Items.InsertItem(h,null,"Cell 2.2");
		var_Items.ExpandItem(h) = true;
	G2antt1.EndUpdate();
}
</SCRIPT>
</BODY>

1074
Is it possible to change the style for the vertical or horizontal grid lines, in the list area
<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
function Init()
{
	G2antt1.BeginUpdate();
	G2antt1.DrawGridLines = -1;
	G2antt1.GridLineStyle = 33;
	G2antt1.Columns.Add("C1");
	G2antt1.Columns.Add("C2");
	G2antt1.Columns.Add("C3");
	var var_Items = G2antt1.Items;
		var h = var_Items.AddItem("Item 1");
		var_Items.CellValue(h,1) = "SubItem 1.2";
		var_Items.CellValue(h,2) = "SubItem 1.3";
		h = var_Items.AddItem("Item 2");
		var_Items.CellValue(h,1) = "SubItem 2.2";
		var_Items.CellValue(h,2) = "SubItem 2.3";
	G2antt1.EndUpdate();
}
</SCRIPT>
</BODY>

1073
How can I show the bars over the grid lines, i.e. so you cannot see the grid lines 'through' the bar

<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
function Init()
{
	G2antt1.BeginUpdate();
	G2antt1.DrawGridLines = -1;
	G2antt1.GridLineColor = 14474460;
	var var_Chart = G2antt1.Chart;
		var_Chart.PaneWidth(0) = 48;
		var_Chart.FirstVisibleDate = "1/1/2001";
		var_Chart.DrawGridLines = -1;
		var_Chart.GridLineStyle = 256;
		var_Chart.LevelCount = 2;
		var var_Level = var_Chart.Level(1);
			var_Level.DrawGridLines = true;
			var_Level.GridLineColor = 14474460;
		var var_Bar = var_Chart.Bars.Item("Task");
			var_Bar.Pattern = 1;
			var_Bar.Height = 14;
	G2antt1.Columns.Add("Column");
	var var_Items = G2antt1.Items;
		var h = var_Items.AddItem("Item 1");
		var_Items.AddBar(h,"Task","1/2/2001","1/5/2001","A",null);
		var_Items.AddBar(h,"Task","1/8/2001","1/15/2001","B",null);
	G2antt1.EndUpdate();
}
</SCRIPT>
</BODY>

1072
Is it possible to change the style for the vertical grid lines, in the chart area only

<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
function Init()
{
	G2antt1.BeginUpdate();
	G2antt1.DrawGridLines = -1;
	G2antt1.GridLineStyle = 12;
	var var_Chart = G2antt1.Chart;
		var_Chart.PaneWidth(0) = 48;
		var_Chart.FirstVisibleDate = "1/1/2001";
		var_Chart.DrawGridLines = -1;
		var_Chart.GridLineStyle = 12;
		var_Chart.LevelCount = 2;
		var_Chart.Level(1).DrawGridLines = true;
		var var_Level = var_Chart.Level(0);
			var_Level.GridLineColor = 255;
			var_Level.GridLineStyle = 32;
		var_Chart.Bars.Item("Task").Pattern = 1;
	G2antt1.Columns.Add("Column");
	var var_Items = G2antt1.Items;
		var h = var_Items.AddItem("Item 1");
		var_Items.AddBar(h,"Task","1/2/2001","1/5/2001","A",null);
		var_Items.AddBar(h,"Task","1/8/2001","1/15/2001","B",null);
	G2antt1.EndUpdate();
}
</SCRIPT>
</BODY>

1071
Is it possible to change the style for the grid lines, for instance to be solid not dotted

<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
function Init()
{
	G2antt1.BeginUpdate();
	G2antt1.DrawGridLines = -1;
	G2antt1.GridLineStyle = 48;
	var var_Chart = G2antt1.Chart;
		var_Chart.PaneWidth(0) = 48;
		var_Chart.FirstVisibleDate = "1/1/2001";
		var_Chart.DrawGridLines = -1;
		var_Chart.GridLineStyle = 48;
		var_Chart.LevelCount = 2;
		var_Chart.Level(1).DrawGridLines = true;
		var_Chart.Bars.Item("Task").Pattern = 1;
	G2antt1.Columns.Add("Column");
	var var_Items = G2antt1.Items;
		var h = var_Items.AddItem("Item 1");
		var_Items.AddBar(h,"Task","1/2/2001","1/5/2001","A",null);
		var_Items.AddBar(h,"Task","1/8/2001","1/15/2001","B",null);
	G2antt1.EndUpdate();
}
</SCRIPT>
</BODY>

1070
How can I show the grid lines for the chart and list area

<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
function Init()
{
	G2antt1.DrawGridLines = -1;
	var var_Chart = G2antt1.Chart;
		var_Chart.PaneWidth(0) = 48;
		var_Chart.FirstVisibleDate = "1/1/2001";
		var_Chart.DrawGridLines = -1;
		var_Chart.LevelCount = 2;
		var_Chart.Level(1).DrawGridLines = true;
		var_Chart.Bars.Item("Task").Pattern = 1;
	G2antt1.Columns.Add("Column");
	var var_Items = G2antt1.Items;
		var h = var_Items.AddItem("Item 1");
		var_Items.AddBar(h,"Task","1/2/2001","1/5/2001","A",null);
		var_Items.AddBar(h,"Task","1/8/2001","1/15/2001","B",null);
}
</SCRIPT>
</BODY>

1069
In the level of the chart we are showing the week number of the year (1-53) (Week: ww). However the weeknumber isn't correct. In western Europe the week of 04/01/2010 till 10/01/2010 is weeknumber 1, however the g2antt says it's week 2

<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
function Init()
{
	var var_Chart = G2antt1.Chart;
		var_Chart.PaneWidth(false) = 0;
		var_Chart.FirstVisibleDate = "12/28/2009";
		var_Chart.LevelCount = 2;
		var_Chart.Level(0).Label = "Week: <%ww%>/<%yyyy%>";
		var_Chart.FirstWeekDay = 1;
}
</SCRIPT>
</BODY>

1068
How can I determine the current visible date range of the gantt chart area
<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
function Init()
{
	G2antt1.Columns.Add("Task");
	var var_Chart = G2antt1.Chart;
		var_Chart.FirstVisibleDate = "1/1/2001";
		var_Chart.PaneWidth(false) = 48;
	var var_Items = G2antt1.Items;
		var_Items.AddBar(var_Items.AddItem("Task 1"),"Task","1/2/2001","1/6/2001",null,null);
		var_Items.AddBar(var_Items.AddItem("Task 2"),"Task","1/3/2001","1/7/2001",null,null);
		var_Items.AddBar(var_Items.AddItem("Task 3"),"Task","1/4/2001","1/8/2001",null,null);
		var_Items.AddBar(var_Items.AddItem("Task 4"),"Task","1/6/2001","1/10/2001",null,null);
	alert( G2antt1.Chart.StartPrintDate );
	alert( G2antt1.Chart.EndPrintDate );
}
</SCRIPT>
</BODY>

1067
How can I change the progress bar using a spin editor using values from 0 to 100

<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
function Init()
{
	G2antt1.BeginUpdate();
	G2antt1.Items.AllowCellValueToItemBar = true;
	var var_Columns = G2antt1.Columns;
		var_Columns.Add("Task");
		var var_Column = var_Columns.Add("Percent");
			var_Column.Editor.EditType = 4;
			var_Column.Def(18) = 518;
	var var_Chart = G2antt1.Chart;
		var_Chart.FirstVisibleDate = "1/1/2001";
		var_Chart.Bars.Add("Task%Progress");
	var var_Items = G2antt1.Items;
		var h = var_Items.AddItem("Task 1");
		var_Items.AddBar(h,"Task%Progress","1/2/2001","1/6/2001",null,null);
		var_Items.CellValue(h,1) = 40;
		h = var_Items.AddItem("Task 2");
		var_Items.AddBar(h,"Task%Progress","1/2/2001","1/6/2001",null,null);
		var_Items.CellValue(h,1) = 50;
	G2antt1.EndUpdate();
}
</SCRIPT>
</BODY>

1066
Is it possible to display the histogram for selected bars only

<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
function Init()
{
	G2antt1.BeginUpdate();
	var var_Chart = G2antt1.Chart;
		var_Chart.LevelCount = 2;
		var_Chart.PaneWidth(false) = 64;
		var_Chart.FirstVisibleDate = "1/1/2001";
		var_Chart.HistogramVisible = true;
		var_Chart.HistogramView = 8;
		var_Chart.HistogramHeight = 32;
		var_Chart.Bars.Item("Task").HistogramPattern = 6;
	G2antt1.Columns.Add("Column");
	var var_Items = G2antt1.Items;
		var_Items.AddBar(var_Items.AddItem("Item 1"),"Task","1/3/2001","1/5/2001",1,null);
		var_Items.AddBar(var_Items.AddItem("Item 2"),"Task","1/4/2001","1/7/2001",2,null);
		var_Items.AddBar(var_Items.AddItem("Item 3"),"Task","1/2/2001","1/6/2001",3,null);
		var_Items.ItemBar(0,2,257) = true;
		var_Items.ItemBar(0,3,257) = true;
	G2antt1.EndUpdate();
}
</SCRIPT>
</BODY>

1065
How can I fix a bar, so it is not selectable, moveable or resizable, fixed in other words
<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
function Init()
{
	G2antt1.BeginUpdate();
	G2antt1.Columns.Add("Task");
	var var_Chart = G2antt1.Chart;
		var_Chart.FirstVisibleDate = "1/1/2001";
		var_Chart.PaneWidth(false) = 48;
	var var_Items = G2antt1.Items;
		var h1 = var_Items.AddItem("Task 1");
		var_Items.AddBar(h1,"Task","1/2/2001","1/8/2001","K1","Unselectable");
		var_Items.ItemBar(h1,"K1",29) = false;
	G2antt1.EndUpdate();
}
</SCRIPT>
</BODY>

1064
How can I fix a bar, so it is not moveable or resizable
<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
function Init()
{
	G2antt1.BeginUpdate();
	G2antt1.Columns.Add("Task");
	var var_Chart = G2antt1.Chart;
		var_Chart.FirstVisibleDate = "1/1/2001";
		var_Chart.PaneWidth(false) = 48;
	var var_Items = G2antt1.Items;
		var h1 = var_Items.AddItem("Task 1");
		var_Items.AddBar(h1,"Task","1/2/2001","1/4/2001","K1","Fixed");
		var_Items.ItemBar(h1,"K1",10) = false;
		var_Items.ItemBar(h1,"K1",11) = false;
	G2antt1.EndUpdate();
}
</SCRIPT>
</BODY>

1063
Is is possible to fix a bar during PDM scheduling
<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
function Init()
{
	G2antt1.BeginUpdate();
	G2antt1.Columns.Add("Task");
	var var_Chart = G2antt1.Chart;
		var_Chart.FirstVisibleDate = "1/1/2001";
		var_Chart.PaneWidth(false) = 48;
	var var_Items = G2antt1.Items;
		var h1 = var_Items.AddItem("Task 1");
		var_Items.AddBar(h1,"TaskF","1/2/2001","1/4/2001","K1",null);
		var_Items.ItemBar(h1,"K1",10) = false;
		var_Items.ItemBar(h1,"K1",11) = false;
		var h2 = var_Items.AddItem("Task 2");
		var_Items.AddBar(h2,"Task","1/2/2001","1/4/2001","K2",null);
		var_Items.AddLink("L1",h1,"K1",h2,"K2");
		var h3 = var_Items.AddItem("Task 3");
		var_Items.AddBar(h3,"TaskF","1/2/2001","1/4/2001","K3",null);
		var_Items.ItemBar(h3,"K3",10) = false;
		var_Items.ItemBar(h3,"K3",11) = false;
		var_Items.AddLink("L2",h2,"K2",h3,"K3");
		var_Items.SchedulePDM(0,"K1");
	G2antt1.EndUpdate();
}
</SCRIPT>
</BODY>

1062
How can I specify that during scheduling the link, bars should be delayed, on working part

<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
function Init()
{
	G2antt1.BeginUpdate();
	G2antt1.Columns.Add("Task");
	var var_Chart = G2antt1.Chart;
		var_Chart.Bars.Add("Task:Split").Shortcut = "Task";
		var_Chart.FirstVisibleDate = "1/1/2001";
		var_Chart.PaneWidth(false) = 48;
	var var_Items = G2antt1.Items;
		var h1 = var_Items.AddItem("Task 1");
		var_Items.AddBar(h1,"Task","1/1/2001","1/3/2001","K1",null);
		var_Items.ItemBar(h1,"K1",20) = true;
		var h2 = var_Items.AddItem("Task 2");
		var_Items.AddBar(h2,"Task","1/2/2001","1/5/2001","K2",null);
		var_Items.ItemBar(h2,"K2",20) = true;
		var_Items.AddLink("L1",h1,"K1",h2,"K2");
		var_Items.Link("L1",12) = "FS";
		var h3 = var_Items.AddItem("Task 3");
		var_Items.AddBar(h3,"Task","1/2/2001","1/6/2001","K3",null);
		var_Items.ItemBar(h3,"K3",20) = true;
		var_Items.AddLink("L2",h2,"K2",h3,"K3");
		var_Items.Link("L2",12) = "link delays the bars<br>for <b>2</b> working days";
		var_Items.Link("L2",16) = 2;
		var_Items.SchedulePDM(0,"K1");
	G2antt1.EndUpdate();
}
</SCRIPT>
</BODY>

1061
How can I specify that during scheduling the link, bars should be delayed

<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
function Init()
{
	G2antt1.BeginUpdate();
	G2antt1.Columns.Add("Task");
	var var_Chart = G2antt1.Chart;
		var_Chart.ShowNonworkingDates = false;
		var_Chart.FirstVisibleDate = "1/1/2001";
		var_Chart.PaneWidth(false) = 48;
	var var_Items = G2antt1.Items;
		var h1 = var_Items.AddItem("Task 1");
		var_Items.AddBar(h1,"Task","1/2/2001","1/4/2001","K1",null);
		var h2 = var_Items.AddItem("Task 2");
		var_Items.AddBar(h2,"Task","1/2/2001","1/5/2001","K2",null);
		var_Items.AddLink("L1",h1,"K1",h2,"K2");
		var_Items.Link("L1",12) = "FS";
		var h3 = var_Items.AddItem("Task 3");
		var_Items.AddBar(h3,"Task","1/2/2001","1/6/2001","K3",null);
		var_Items.AddLink("L2",h2,"K2",h3,"K3");
		var_Items.Link("L2",12) = "   Finish-Start<br>delayed <b>4</b> days";
		var_Items.Link("L2",17) = 4;
		var_Items.SchedulePDM(0,"K1");
	G2antt1.EndUpdate();
}
</SCRIPT>
</BODY>

1060
The SchedulePDM method put the bars on non-working part, how can I prevent that

<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
function Init()
{
	G2antt1.BeginUpdate();
	G2antt1.Columns.Add("Task");
	var var_Chart = G2antt1.Chart;
		var_Chart.Bars.Add("Task:Split").Shortcut = "Task";
		var_Chart.FirstVisibleDate = "1/1/2001";
		var_Chart.PaneWidth(false) = 48;
	var var_Items = G2antt1.Items;
		var h1 = var_Items.AddItem("Task 1");
		var_Items.AddBar(h1,"Task","1/2/2001","1/4/2001","K1",null);
		var_Items.ItemBar(h1,"K1",20) = true;
		var h2 = var_Items.AddItem("Task 2");
		var_Items.AddBar(h2,"Task","1/2/2001","1/5/2001","K2",null);
		var_Items.ItemBar(h2,"K2",20) = true;
		var_Items.AddLink("L1",h1,"K1",h2,"K2");
		var_Items.Link("L1",12) = "FS";
		var h3 = var_Items.AddItem("Task 3");
		var_Items.AddBar(h3,"Task","1/2/2001","1/6/2001","K3",null);
		var_Items.ItemBar(h3,"K3",20) = true;
		var_Items.AddLink("L2",h2,"K2",h3,"K3");
		var_Items.Link("L2",12) = "FS";
		var_Items.SchedulePDM(0,"K1");
	G2antt1.EndUpdate();
}
</SCRIPT>
</BODY>

1059
How can I add a SF (Start-Finish) link so activities get arranged using the SchedulePDM

<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
function Init()
{
	G2antt1.BeginUpdate();
	G2antt1.Columns.Add("Task");
	var var_Chart = G2antt1.Chart;
		var_Chart.FirstVisibleDate = "12/28/2000";
		var_Chart.PaneWidth(false) = 48;
	var var_Items = G2antt1.Items;
		var h1 = var_Items.AddItem("Task 1");
		var_Items.AddBar(h1,"Task","1/2/2001","1/4/2001","K1",null);
		var h2 = var_Items.AddItem("Task 2");
		var_Items.AddBar(h2,"Task","1/2/2001","1/5/2001","K2",null);
		var_Items.AddLink("L1",h1,"K1",h2,"K2");
		var_Items.Link("L1",12) = "FS";
		var h3 = var_Items.AddItem("Task 3");
		var_Items.AddBar(h3,"Task","1/2/2001","1/6/2001","K3",null);
		var_Items.AddLink("L2",h2,"K2",h3,"K3");
		var_Items.Link("L2",12) = "SF";
		var_Items.Link("L2",6) = 0;
		var_Items.Link("L2",7) = 2;
		var_Items.SchedulePDM(0,"K1");
	G2antt1.EndUpdate();
}
</SCRIPT>
</BODY>

1058
How can I add a SS (Start-Start) link so activities get arranged using the SchedulePDM

<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
function Init()
{
	G2antt1.BeginUpdate();
	G2antt1.Columns.Add("Task");
	var var_Chart = G2antt1.Chart;
		var_Chart.FirstVisibleDate = "12/28/2000";
		var_Chart.PaneWidth(false) = 48;
	var var_Items = G2antt1.Items;
		var h1 = var_Items.AddItem("Task 1");
		var_Items.AddBar(h1,"Task","1/2/2001","1/4/2001","K1",null);
		var h2 = var_Items.AddItem("Task 2");
		var_Items.AddBar(h2,"Task","1/2/2001","1/5/2001","K2",null);
		var_Items.AddLink("L1",h1,"K1",h2,"K2");
		var_Items.Link("L1",12) = "FS";
		var h3 = var_Items.AddItem("Task 3");
		var_Items.AddBar(h3,"Task","1/2/2001","1/6/2001","K3",null);
		var_Items.AddLink("L2",h2,"K2",h3,"K3");
		var_Items.Link("L2",12) = "SS";
		var_Items.Link("L2",6) = 0;
		var_Items.Link("L2",7) = 0;
		var_Items.SchedulePDM(0,"K1");
	G2antt1.EndUpdate();
}
</SCRIPT>
</BODY>

1057
How can I add a FF (Finish-Finish) link so activities get arranged using the SchedulePDM

<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
function Init()
{
	G2antt1.BeginUpdate();
	G2antt1.Columns.Add("Task");
	var var_Chart = G2antt1.Chart;
		var_Chart.FirstVisibleDate = "12/28/2000";
		var_Chart.PaneWidth(false) = 48;
	var var_Items = G2antt1.Items;
		var h1 = var_Items.AddItem("Task 1");
		var_Items.AddBar(h1,"Task","1/2/2001","1/4/2001","K1",null);
		var h2 = var_Items.AddItem("Task 2");
		var_Items.AddBar(h2,"Task","1/2/2001","1/5/2001","K2",null);
		var_Items.AddLink("L1",h1,"K1",h2,"K2");
		var_Items.Link("L1",12) = "FS";
		var h3 = var_Items.AddItem("Task 3");
		var_Items.AddBar(h3,"Task","1/2/2001","1/6/2001","K3",null);
		var_Items.AddLink("L2",h2,"K2",h3,"K3");
		var_Items.Link("L2",12) = "FF";
		var_Items.Link("L2",6) = 2;
		var_Items.Link("L2",7) = 2;
		var_Items.SchedulePDM(0,"K1");
	G2antt1.EndUpdate();
}
</SCRIPT>
</BODY>

1056
How can I add a FS (Finish-Start) link so activities get arranged using the SchedulePDM

<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
function Init()
{
	G2antt1.BeginUpdate();
	G2antt1.Columns.Add("Task");
	var var_Chart = G2antt1.Chart;
		var_Chart.FirstVisibleDate = "1/1/2001";
		var_Chart.PaneWidth(false) = 48;
	var var_Items = G2antt1.Items;
		var h1 = var_Items.AddItem("Task 1");
		var_Items.AddBar(h1,"Task","1/2/2001","1/4/2001","K1",null);
		var h2 = var_Items.AddItem("Task 2");
		var_Items.AddBar(h2,"Task","1/2/2001","1/5/2001","K2",null);
		var_Items.AddLink("L1",h1,"K1",h2,"K2");
		var_Items.Link("L1",12) = "FS";
		var h3 = var_Items.AddItem("Task 3");
		var_Items.AddBar(h3,"Task","1/2/2001","1/6/2001","K3",null);
		var_Items.AddLink("L2",h2,"K2",h3,"K3");
		var_Items.Link("L2",12) = "FS";
		var_Items.SchedulePDM(0,"K1");
	G2antt1.EndUpdate();
}
</SCRIPT>
</BODY>

1055
How can I schedule activities in the project plan
<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
function Init()
{
	G2antt1.BeginUpdate();
	G2antt1.Columns.Add("Task");
	var var_Chart = G2antt1.Chart;
		var_Chart.FirstVisibleDate = "1/1/2001";
		var_Chart.PaneWidth(false) = 48;
	var var_Items = G2antt1.Items;
		var h1 = var_Items.AddItem("Task 1");
		var_Items.AddBar(h1,"Task","1/2/2001","1/4/2001","K1",null);
		var h2 = var_Items.AddItem("Task 2");
		var_Items.AddBar(h2,"Task","1/2/2001","1/4/2001","K2",null);
		var_Items.AddLink("L1",h1,"K1",h2,"K2");
		var h3 = var_Items.AddItem("Task 3");
		var_Items.AddBar(h3,"Task","1/2/2001","1/4/2001","K3",null);
		var_Items.AddLink("L2",h3,"K3",h2,"K2");
		var_Items.SchedulePDM(0,"K1");
	G2antt1.EndUpdate();
}
</SCRIPT>
</BODY>

1054
How do I arrange the bars based on the links

<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
function Init()
{
	G2antt1.BeginUpdate();
	G2antt1.Columns.Add("Task");
	var var_Chart = G2antt1.Chart;
		var_Chart.FirstVisibleDate = "1/1/2001";
		var_Chart.PaneWidth(false) = 48;
	var var_Items = G2antt1.Items;
		var h1 = var_Items.AddItem("Task 1");
		var_Items.AddBar(h1,"Task","1/2/2001","1/4/2001","K1",null);
		var h2 = var_Items.AddItem("Task 2");
		var_Items.AddBar(h2,"Task","1/2/2001","1/4/2001","K2",null);
		var_Items.AddLink("L1",h1,"K1",h2,"K2");
		var h3 = var_Items.AddItem("Task 3");
		var_Items.AddBar(h3,"Task","1/2/2001","1/4/2001","K3",null);
		var_Items.AddLink("L2",h2,"K2",h3,"K3");
		var_Items.SchedulePDM(0,"K1");
	G2antt1.EndUpdate();
}
</SCRIPT>
</BODY>

1053
Is is possible to use HTML tags to display in the filter caption
<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
function Init()
{
	G2antt1.BeginUpdate();
	G2antt1.FilterBarPromptVisible = true;
	G2antt1.FilterBarCaption = "This is a bit of text being displayed in the filter bar.";
	G2antt1.Columns.Add("");
	var var_Items = G2antt1.Items;
		var_Items.AddItem("Item 1");
		var_Items.AddItem("Item 2");
		var_Items.AddItem("Item 3");
	G2antt1.EndUpdate();
}
</SCRIPT>
</BODY>

1052
How can I find the number of items after filtering
<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
function Init()
{
	G2antt1.BeginUpdate();
	G2antt1.Columns.Add("");
	var var_Items = G2antt1.Items;
		var h = var_Items.AddItem("");
		var_Items.CellValue(h,0) = var_Items.VisibleItemCount;
	G2antt1.EndUpdate();
}
</SCRIPT>
</BODY>

1051
How can I change the filter caption
<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
function Init()
{
	G2antt1.BeginUpdate();
	G2antt1.Chart.PaneWidth(true) = 0;
	G2antt1.ColumnAutoResize = true;
	G2antt1.ContinueColumnScroll = 0;
	G2antt1.FocusColumnIndex = 1;
	G2antt1.MarkSearchColumn = false;
	G2antt1.SearchColumnIndex = 1;
	G2antt1.FilterBarPromptVisible = true;
	G2antt1.FilterBarPromptType = 12801;
	G2antt1.FilterBarPromptPattern = "london robert";
	G2antt1.FilterBarCaption = "<r>Found: ... ";
	var var_Columns = G2antt1.Columns;
		var_Columns.Add("Name").Width = 96;
		var_Columns.Add("Title").Width = 96;
		var_Columns.Add("City");
	var var_Items = G2antt1.Items;
		var h0 = var_Items.AddItem("Nancy Davolio");
		var_Items.CellValue(h0,1) = "Sales Representative";
		var_Items.CellValue(h0,2) = "Seattle";
		h0 = var_Items.AddItem("Andrew Fuller");
		var_Items.CellValue(h0,1) = "Vice President, Sales";
		var_Items.CellValue(h0,2) = "Tacoma";
		var_Items.SelectItem(h0) = true;
		h0 = var_Items.AddItem("Janet Leverling");
		var_Items.CellValue(h0,1) = "Sales Representative";
		var_Items.CellValue(h0,2) = "Kirkland";
		h0 = var_Items.AddItem("Margaret Peacock");
		var_Items.CellValue(h0,1) = "Sales Representative";
		var_Items.CellValue(h0,2) = "Redmond";
		h0 = var_Items.AddItem("Steven Buchanan");
		var_Items.CellValue(h0,1) = "Sales Manager";
		var_Items.CellValue(h0,2) = "London";
		h0 = var_Items.AddItem("Michael Suyama");
		var_Items.CellValue(h0,1) = "Sales Representative";
		var_Items.CellValue(h0,2) = "London";
		h0 = var_Items.AddItem("Robert King");
		var_Items.CellValue(h0,1) = "Sales Representative";
		var_Items.CellValue(h0,2) = "London";
		h0 = var_Items.AddItem("Laura Callahan");
		var_Items.CellValue(h0,1) = "Inside Sales Coordinator";
		var_Items.CellValue(h0,2) = "Seattle";
		h0 = var_Items.AddItem("Anne Dodsworth");
		var_Items.CellValue(h0,1) = "Sales Representative";
		var_Items.CellValue(h0,2) = "London";
	G2antt1.EndUpdate();
}
</SCRIPT>
</BODY>

1050
While using the filter prompt is it is possible to use wild characters
<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
function Init()
{
	G2antt1.BeginUpdate();
	G2antt1.Chart.PaneWidth(true) = 0;
	G2antt1.ColumnAutoResize = true;
	G2antt1.ContinueColumnScroll = 0;
	G2antt1.FocusColumnIndex = 1;
	G2antt1.MarkSearchColumn = false;
	G2antt1.SearchColumnIndex = 1;
	G2antt1.FilterBarPromptVisible = true;
	G2antt1.FilterBarPromptType = 16;
	G2antt1.FilterBarPromptPattern = "lon* seat*";
	var var_Columns = G2antt1.Columns;
		var_Columns.Add("Name").Width = 96;
		var_Columns.Add("Title").Width = 96;
		var_Columns.Add("City");
	var var_Items = G2antt1.Items;
		var h0 = var_Items.AddItem("Nancy Davolio");
		var_Items.CellValue(h0,1) = "Sales Representative";
		var_Items.CellValue(h0,2) = "Seattle";
		h0 = var_Items.AddItem("Andrew Fuller");
		var_Items.CellValue(h0,1) = "Vice President, Sales";
		var_Items.CellValue(h0,2) = "Tacoma";
		var_Items.SelectItem(h0) = true;
		h0 = var_Items.AddItem("Janet Leverling");
		var_Items.CellValue(h0,1) = "Sales Representative";
		var_Items.CellValue(h0,2) = "Kirkland";
		h0 = var_Items.AddItem("Margaret Peacock");
		var_Items.CellValue(h0,1) = "Sales Representative";
		var_Items.CellValue(h0,2) = "Redmond";
		h0 = var_Items.AddItem("Steven Buchanan");
		var_Items.CellValue(h0,1) = "Sales Manager";
		var_Items.CellValue(h0,2) = "London";
		h0 = var_Items.AddItem("Michael Suyama");
		var_Items.CellValue(h0,1) = "Sales Representative";
		var_Items.CellValue(h0,2) = "London";
		h0 = var_Items.AddItem("Robert King");
		var_Items.CellValue(h0,1) = "Sales Representative";
		var_Items.CellValue(h0,2) = "London";
		h0 = var_Items.AddItem("Laura Callahan");
		var_Items.CellValue(h0,1) = "Inside Sales Coordinator";
		var_Items.CellValue(h0,2) = "Seattle";
		h0 = var_Items.AddItem("Anne Dodsworth");
		var_Items.CellValue(h0,1) = "Sales Representative";
		var_Items.CellValue(h0,2) = "London";
	G2antt1.EndUpdate();
}
</SCRIPT>
</BODY>

1049
How can I list all items that contains any of specified words, not necessary at the beggining
<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
function Init()
{
	G2antt1.BeginUpdate();
	G2antt1.Chart.PaneWidth(true) = 0;
	G2antt1.ColumnAutoResize = true;
	G2antt1.ContinueColumnScroll = 0;
	G2antt1.FocusColumnIndex = 1;
	G2antt1.MarkSearchColumn = false;
	G2antt1.SearchColumnIndex = 1;
	G2antt1.FilterBarPromptVisible = true;
	G2antt1.FilterBarPromptType = 4610;
	G2antt1.FilterBarPromptPattern = "london davolio";
	var var_Columns = G2antt1.Columns;
		var_Columns.Add("Name").Width = 96;
		var_Columns.Add("Title").Width = 96;
		var_Columns.Add("City");
	var var_Items = G2antt1.Items;
		var h0 = var_Items.AddItem("Nancy Davolio");
		var_Items.CellValue(h0,1) = "Sales Representative";
		var_Items.CellValue(h0,2) = "Seattle";
		h0 = var_Items.AddItem("Andrew Fuller");
		var_Items.CellValue(h0,1) = "Vice President, Sales";
		var_Items.CellValue(h0,2) = "Tacoma";
		var_Items.SelectItem(h0) = true;
		h0 = var_Items.AddItem("Janet Leverling");
		var_Items.CellValue(h0,1) = "Sales Representative";
		var_Items.CellValue(h0,2) = "Kirkland";
		h0 = var_Items.AddItem("Margaret Peacock");
		var_Items.CellValue(h0,1) = "Sales Representative";
		var_Items.CellValue(h0,2) = "Redmond";
		h0 = var_Items.AddItem("Steven Buchanan");
		var_Items.CellValue(h0,1) = "Sales Manager";
		var_Items.CellValue(h0,2) = "London";
		h0 = var_Items.AddItem("Michael Suyama");
		var_Items.CellValue(h0,1) = "Sales Representative";
		var_Items.CellValue(h0,2) = "London";
		h0 = var_Items.AddItem("Robert King");
		var_Items.CellValue(h0,1) = "Sales Representative";
		var_Items.CellValue(h0,2) = "London";
		h0 = var_Items.AddItem("Laura Callahan");
		var_Items.CellValue(h0,1) = "Inside Sales Coordinator";
		var_Items.CellValue(h0,2) = "Seattle";
		h0 = var_Items.AddItem("Anne Dodsworth");
		var_Items.CellValue(h0,1) = "Sales Representative";
		var_Items.CellValue(h0,2) = "London";
	G2antt1.EndUpdate();
}
</SCRIPT>
</BODY>

1048
How can I list all items that contains any of specified words, not strings
<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
function Init()
{
	G2antt1.BeginUpdate();
	G2antt1.ColumnAutoResize = true;
	G2antt1.ContinueColumnScroll = 0;
	G2antt1.FocusColumnIndex = 1;
	G2antt1.Chart.PaneWidth(true) = 0;
	G2antt1.MarkSearchColumn = false;
	G2antt1.SearchColumnIndex = 1;
	G2antt1.FilterBarPromptVisible = true;
	G2antt1.FilterBarPromptType = 12802;
	G2antt1.FilterBarPromptPattern = "london nancy";
	var var_Columns = G2antt1.Columns;
		var_Columns.Add("Name").Width = 96;
		var_Columns.Add("Title").Width = 96;
		var_Columns.Add("City");
	var var_Items = G2antt1.Items;
		var h0 = var_Items.AddItem("Nancy Davolio");
		var_Items.CellValue(h0,1) = "Sales Representative";
		var_Items.CellValue(h0,2) = "Seattle";
		h0 = var_Items.AddItem("Andrew Fuller");
		var_Items.CellValue(h0,1) = "Vice President, Sales";
		var_Items.CellValue(h0,2) = "Tacoma";
		var_Items.SelectItem(h0) = true;
		h0 = var_Items.AddItem("Janet Leverling");
		var_Items.CellValue(h0,1) = "Sales Representative";
		var_Items.CellValue(h0,2) = "Kirkland";
		h0 = var_Items.AddItem("Margaret Peacock");
		var_Items.CellValue(h0,1) = "Sales Representative";
		var_Items.CellValue(h0,2) = "Redmond";
		h0 = var_Items.AddItem("Steven Buchanan");
		var_Items.CellValue(h0,1) = "Sales Manager";
		var_Items.CellValue(h0,2) = "London";
		h0 = var_Items.AddItem("Michael Suyama");
		var_Items.CellValue(h0,1) = "Sales Representative";
		var_Items.CellValue(h0,2) = "London";
		h0 = var_Items.AddItem("Robert King");
		var_Items.CellValue(h0,1) = "Sales Representative";
		var_Items.CellValue(h0,2) = "London";
		h0 = var_Items.AddItem("Laura Callahan");
		var_Items.CellValue(h0,1) = "Inside Sales Coordinator";
		var_Items.CellValue(h0,2) = "Seattle";
		h0 = var_Items.AddItem("Anne Dodsworth");
		var_Items.CellValue(h0,1) = "Sales Representative";
		var_Items.CellValue(h0,2) = "London";
	G2antt1.EndUpdate();
}
</SCRIPT>
</BODY>

1047
How can I list all items that contains all specified words, not strings
<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
function Init()
{
	G2antt1.BeginUpdate();
	G2antt1.Chart.PaneWidth(true) = 0;
	G2antt1.ColumnAutoResize = true;
	G2antt1.ContinueColumnScroll = 0;
	G2antt1.FocusColumnIndex = 1;
	G2antt1.MarkSearchColumn = false;
	G2antt1.SearchColumnIndex = 1;
	G2antt1.FilterBarPromptVisible = true;
	G2antt1.FilterBarPromptType = 12801;
	G2antt1.FilterBarPromptPattern = "london robert";
	var var_Columns = G2antt1.Columns;
		var_Columns.Add("Name").Width = 96;
		var_Columns.Add("Title").Width = 96;
		var_Columns.Add("City");
	var var_Items = G2antt1.Items;
		var h0 = var_Items.AddItem("Nancy Davolio");
		var_Items.CellValue(h0,1) = "Sales Representative";
		var_Items.CellValue(h0,2) = "Seattle";
		h0 = var_Items.AddItem("Andrew Fuller");
		var_Items.CellValue(h0,1) = "Vice President, Sales";
		var_Items.CellValue(h0,2) = "Tacoma";
		var_Items.SelectItem(h0) = true;
		h0 = var_Items.AddItem("Janet Leverling");
		var_Items.CellValue(h0,1) = "Sales Representative";
		var_Items.CellValue(h0,2) = "Kirkland";
		h0 = var_Items.AddItem("Margaret Peacock");
		var_Items.CellValue(h0,1) = "Sales Representative";
		var_Items.CellValue(h0,2) = "Redmond";
		h0 = var_Items.AddItem("Steven Buchanan");
		var_Items.CellValue(h0,1) = "Sales Manager";
		var_Items.CellValue(h0,2) = "London";
		h0 = var_Items.AddItem("Michael Suyama");
		var_Items.CellValue(h0,1) = "Sales Representative";
		var_Items.CellValue(h0,2) = "London";
		h0 = var_Items.AddItem("Robert King");
		var_Items.CellValue(h0,1) = "Sales Representative";
		var_Items.CellValue(h0,2) = "London";
		h0 = var_Items.AddItem("Laura Callahan");
		var_Items.CellValue(h0,1) = "Inside Sales Coordinator";
		var_Items.CellValue(h0,2) = "Seattle";
		h0 = var_Items.AddItem("Anne Dodsworth");
		var_Items.CellValue(h0,1) = "Sales Representative";
		var_Items.CellValue(h0,2) = "London";
	G2antt1.EndUpdate();
}
</SCRIPT>
</BODY>

1046
I've noticed that the filtering by prompt is not case sensitive, is is possible to make it case sensitive
<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
function Init()
{
	G2antt1.BeginUpdate();
	G2antt1.ColumnAutoResize = true;
	G2antt1.ContinueColumnScroll = 0;
	G2antt1.FocusColumnIndex = 1;
	G2antt1.MarkSearchColumn = false;
	G2antt1.SearchColumnIndex = 1;
	G2antt1.FilterBarPromptVisible = true;
	G2antt1.FilterBarPromptType = 258;
	G2antt1.FilterBarPromptPattern = "Anne";
	G2antt1.Chart.PaneWidth(true) = 0;
	var var_Columns = G2antt1.Columns;
		var_Columns.Add("Name").Width = 96;
		var_Columns.Add("Title").Width = 96;
		var_Columns.Add("City");
	var var_Items = G2antt1.Items;
		var h0 = var_Items.AddItem("Nancy Davolio");
		var_Items.CellValue(h0,1) = "Sales Representative";
		var_Items.CellValue(h0,2) = "Seattle";
		h0 = var_Items.AddItem("Andrew Fuller");
		var_Items.CellValue(h0,1) = "Vice President, Sales";
		var_Items.CellValue(h0,2) = "Tacoma";
		var_Items.SelectItem(h0) = true;
		h0 = var_Items.AddItem("Janet Leverling");
		var_Items.CellValue(h0,1) = "Sales Representative";
		var_Items.CellValue(h0,2) = "Kirkland";
		h0 = var_Items.AddItem("Margaret Peacock");
		var_Items.CellValue(h0,1) = "Sales Representative";
		var_Items.CellValue(h0,2) = "Redmond";
		h0 = var_Items.AddItem("Steven Buchanan");
		var_Items.CellValue(h0,1) = "Sales Manager";
		var_Items.CellValue(h0,2) = "London";
		h0 = var_Items.AddItem("Michael Suyama");
		var_Items.CellValue(h0,1) = "Sales Representative";
		var_Items.CellValue(h0,2) = "London";
		h0 = var_Items.AddItem("Robert King");
		var_Items.CellValue(h0,1) = "Sales Representative";
		var_Items.CellValue(h0,2) = "London";
		h0 = var_Items.AddItem("Laura Callahan");
		var_Items.CellValue(h0,1) = "Inside Sales Coordinator";
		var_Items.CellValue(h0,2) = "Seattle";
		h0 = var_Items.AddItem("Anne Dodsworth");
		var_Items.CellValue(h0,1) = "Sales Representative";
		var_Items.CellValue(h0,2) = "London";
	G2antt1.EndUpdate();
}
</SCRIPT>
</BODY>

1045
Is it possible to list only items that ends with any of specified strings
<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
function Init()
{
	G2antt1.BeginUpdate();
	G2antt1.ColumnAutoResize = true;
	G2antt1.ContinueColumnScroll = 0;
	G2antt1.FocusColumnIndex = 1;
	G2antt1.MarkSearchColumn = false;
	G2antt1.SearchColumnIndex = 1;
	G2antt1.FilterBarPromptVisible = true;
	G2antt1.FilterBarPromptType = 4;
	G2antt1.FilterBarPromptColumns = "0";
	G2antt1.FilterBarPromptPattern = "Fuller";
	G2antt1.Chart.PaneWidth(true) = 0;
	var var_Columns = G2antt1.Columns;
		var_Columns.Add("Name").Width = 96;
		var_Columns.Add("Title").Width = 96;
		var_Columns.Add("City");
	var var_Items = G2antt1.Items;
		var h0 = var_Items.AddItem("Nancy Davolio");
		var_Items.CellValue(h0,1) = "Sales Representative";
		var_Items.CellValue(h0,2) = "Seattle";
		h0 = var_Items.AddItem("Andrew Fuller");
		var_Items.CellValue(h0,1) = "Vice President, Sales";
		var_Items.CellValue(h0,2) = "Tacoma";
		var_Items.SelectItem(h0) = true;
		h0 = var_Items.AddItem("Janet Leverling");
		var_Items.CellValue(h0,1) = "Sales Representative";
		var_Items.CellValue(h0,2) = "Kirkland";
		h0 = var_Items.AddItem("Margaret Peacock");
		var_Items.CellValue(h0,1) = "Sales Representative";
		var_Items.CellValue(h0,2) = "Redmond";
		h0 = var_Items.AddItem("Steven Buchanan");
		var_Items.CellValue(h0,1) = "Sales Manager";
		var_Items.CellValue(h0,2) = "London";
		h0 = var_Items.AddItem("Michael Suyama");
		var_Items.CellValue(h0,1) = "Sales Representative";
		var_Items.CellValue(h0,2) = "London";
		h0 = var_Items.AddItem("Robert King");
		var_Items.CellValue(h0,1) = "Sales Representative";
		var_Items.CellValue(h0,2) = "London";
		h0 = var_Items.AddItem("Laura Callahan");
		var_Items.CellValue(h0,1) = "Inside Sales Coordinator";
		var_Items.CellValue(h0,2) = "Seattle";
		h0 = var_Items.AddItem("Anne Dodsworth");
		var_Items.CellValue(h0,1) = "Sales Representative";
		var_Items.CellValue(h0,2) = "London";
	G2antt1.EndUpdate();
}
</SCRIPT>
</BODY>

1044
Is it possible to list only items that ends with any of specified strings
<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
function Init()
{
	G2antt1.BeginUpdate();
	G2antt1.ColumnAutoResize = true;
	G2antt1.ContinueColumnScroll = 0;
	G2antt1.FocusColumnIndex = 1;
	G2antt1.MarkSearchColumn = false;
	G2antt1.SearchColumnIndex = 1;
	G2antt1.FilterBarPromptVisible = true;
	G2antt1.FilterBarPromptType = 4;
	G2antt1.FilterBarPromptColumns = "0";
	G2antt1.FilterBarPromptPattern = "Fuller";
	G2antt1.Chart.PaneWidth(true) = 0;
	var var_Columns = G2antt1.Columns;
		var_Columns.Add("Name").Width = 96;
		var_Columns.Add("Title").Width = 96;
		var_Columns.Add("City");
	var var_Items = G2antt1.Items;
		var h0 = var_Items.AddItem("Nancy Davolio");
		var_Items.CellValue(h0,1) = "Sales Representative";
		var_Items.CellValue(h0,2) = "Seattle";
		h0 = var_Items.AddItem("Andrew Fuller");
		var_Items.CellValue(h0,1) = "Vice President, Sales";
		var_Items.CellValue(h0,2) = "Tacoma";
		var_Items.SelectItem(h0) = true;
		h0 = var_Items.AddItem("Janet Leverling");
		var_Items.CellValue(h0,1) = "Sales Representative";
		var_Items.CellValue(h0,2) = "Kirkland";
		h0 = var_Items.AddItem("Margaret Peacock");
		var_Items.CellValue(h0,1) = "Sales Representative";
		var_Items.CellValue(h0,2) = "Redmond";
		h0 = var_Items.AddItem("Steven Buchanan");
		var_Items.CellValue(h0,1) = "Sales Manager";
		var_Items.CellValue(h0,2) = "London";
		h0 = var_Items.AddItem("Michael Suyama");
		var_Items.CellValue(h0,1) = "Sales Representative";
		var_Items.CellValue(h0,2) = "London";
		h0 = var_Items.AddItem("Robert King");
		var_Items.CellValue(h0,1) = "Sales Representative";
		var_Items.CellValue(h0,2) = "London";
		h0 = var_Items.AddItem("Laura Callahan");
		var_Items.CellValue(h0,1) = "Inside Sales Coordinator";
		var_Items.CellValue(h0,2) = "Seattle";
		h0 = var_Items.AddItem("Anne Dodsworth");
		var_Items.CellValue(h0,1) = "Sales Representative";
		var_Items.CellValue(h0,2) = "London";
	G2antt1.EndUpdate();
}
</SCRIPT>
</BODY>

1043
Is it possible to list only items that starts with any of specified strings
<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
function Init()
{
	G2antt1.BeginUpdate();
	G2antt1.ColumnAutoResize = true;
	G2antt1.ContinueColumnScroll = 0;
	G2antt1.FocusColumnIndex = 1;
	G2antt1.MarkSearchColumn = false;
	G2antt1.SearchColumnIndex = 1;
	G2antt1.FilterBarPromptVisible = true;
	G2antt1.FilterBarPromptType = 3;
	G2antt1.FilterBarPromptColumns = "0";
	G2antt1.FilterBarPromptPattern = "An M";
	G2antt1.Chart.PaneWidth(true) = 0;
	var var_Columns = G2antt1.Columns;
		var_Columns.Add("Name").Width = 96;
		var_Columns.Add("Title").Width = 96;
		var_Columns.Add("City");
	var var_Items = G2antt1.Items;
		var h0 = var_Items.AddItem("Nancy Davolio");
		var_Items.CellValue(h0,1) = "Sales Representative";
		var_Items.CellValue(h0,2) = "Seattle";
		h0 = var_Items.AddItem("Andrew Fuller");
		var_Items.CellValue(h0,1) = "Vice President, Sales";
		var_Items.CellValue(h0,2) = "Tacoma";
		var_Items.SelectItem(h0) = true;
		h0 = var_Items.AddItem("Janet Leverling");
		var_Items.CellValue(h0,1) = "Sales Representative";
		var_Items.CellValue(h0,2) = "Kirkland";
		h0 = var_Items.AddItem("Margaret Peacock");
		var_Items.CellValue(h0,1) = "Sales Representative";
		var_Items.CellValue(h0,2) = "Redmond";
		h0 = var_Items.AddItem("Steven Buchanan");
		var_Items.CellValue(h0,1) = "Sales Manager";
		var_Items.CellValue(h0,2) = "London";
		h0 = var_Items.AddItem("Michael Suyama");
		var_Items.CellValue(h0,1) = "Sales Representative";
		var_Items.CellValue(h0,2) = "London";
		h0 = var_Items.AddItem("Robert King");
		var_Items.CellValue(h0,1) = "Sales Representative";
		var_Items.CellValue(h0,2) = "London";
		h0 = var_Items.AddItem("Laura Callahan");
		var_Items.CellValue(h0,1) = "Inside Sales Coordinator";
		var_Items.CellValue(h0,2) = "Seattle";
		h0 = var_Items.AddItem("Anne Dodsworth");
		var_Items.CellValue(h0,1) = "Sales Representative";
		var_Items.CellValue(h0,2) = "London";
	G2antt1.EndUpdate();
}
</SCRIPT>
</BODY>

1042
Is it possible to list only items that starts with specified string
<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
function Init()
{
	G2antt1.BeginUpdate();
	G2antt1.ColumnAutoResize = true;
	G2antt1.ContinueColumnScroll = 0;
	G2antt1.FocusColumnIndex = 1;
	G2antt1.MarkSearchColumn = false;
	G2antt1.SearchColumnIndex = 1;
	G2antt1.FilterBarPromptVisible = true;
	G2antt1.FilterBarPromptType = 3;
	G2antt1.FilterBarPromptColumns = "0";
	G2antt1.FilterBarPromptPattern = "A";
	G2antt1.Chart.PaneWidth(true) = 0;
	var var_Columns = G2antt1.Columns;
		var_Columns.Add("Name").Width = 96;
		var_Columns.Add("Title").Width = 96;
		var_Columns.Add("City");
	var var_Items = G2antt1.Items;
		var h0 = var_Items.AddItem("Nancy Davolio");
		var_Items.CellValue(h0,1) = "Sales Representative";
		var_Items.CellValue(h0,2) = "Seattle";
		h0 = var_Items.AddItem("Andrew Fuller");
		var_Items.CellValue(h0,1) = "Vice President, Sales";
		var_Items.CellValue(h0,2) = "Tacoma";
		var_Items.SelectItem(h0) = true;
		h0 = var_Items.AddItem("Janet Leverling");
		var_Items.CellValue(h0,1) = "Sales Representative";
		var_Items.CellValue(h0,2) = "Kirkland";
		h0 = var_Items.AddItem("Margaret Peacock");
		var_Items.CellValue(h0,1) = "Sales Representative";
		var_Items.CellValue(h0,2) = "Redmond";
		h0 = var_Items.AddItem("Steven Buchanan");
		var_Items.CellValue(h0,1) = "Sales Manager";
		var_Items.CellValue(h0,2) = "London";
		h0 = var_Items.AddItem("Michael Suyama");
		var_Items.CellValue(h0,1) = "Sales Representative";
		var_Items.CellValue(h0,2) = "London";
		h0 = var_Items.AddItem("Robert King");
		var_Items.CellValue(h0,1) = "Sales Representative";
		var_Items.CellValue(h0,2) = "London";
		h0 = var_Items.AddItem("Laura Callahan");
		var_Items.CellValue(h0,1) = "Inside Sales Coordinator";
		var_Items.CellValue(h0,2) = "Seattle";
		h0 = var_Items.AddItem("Anne Dodsworth");
		var_Items.CellValue(h0,1) = "Sales Representative";
		var_Items.CellValue(h0,2) = "London";
	G2antt1.EndUpdate();
}
</SCRIPT>
</BODY>

1041
How can I specify that the list should include any of the seqeunces in the pattern
<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
function Init()
{
	G2antt1.BeginUpdate();
	G2antt1.ColumnAutoResize = true;
	G2antt1.ContinueColumnScroll = 0;
	G2antt1.FocusColumnIndex = 1;
	G2antt1.MarkSearchColumn = false;
	G2antt1.SearchColumnIndex = 1;
	G2antt1.FilterBarPromptVisible = true;
	G2antt1.FilterBarPromptType = 2;
	G2antt1.FilterBarPromptPattern = "london seattle";
	G2antt1.Chart.PaneWidth(true) = 0;
	var var_Columns = G2antt1.Columns;
		var_Columns.Add("Name").Width = 96;
		var_Columns.Add("Title").Width = 96;
		var_Columns.Add("City");
	var var_Items = G2antt1.Items;
		var h0 = var_Items.AddItem("Nancy Davolio");
		var_Items.CellValue(h0,1) = "Sales Representative";
		var_Items.CellValue(h0,2) = "Seattle";
		h0 = var_Items.AddItem("Andrew Fuller");
		var_Items.CellValue(h0,1) = "Vice President, Sales";
		var_Items.CellValue(h0,2) = "Tacoma";
		var_Items.SelectItem(h0) = true;
		h0 = var_Items.AddItem("Janet Leverling");
		var_Items.CellValue(h0,1) = "Sales Representative";
		var_Items.CellValue(h0,2) = "Kirkland";
		h0 = var_Items.AddItem("Margaret Peacock");
		var_Items.CellValue(h0,1) = "Sales Representative";
		var_Items.CellValue(h0,2) = "Redmond";
		h0 = var_Items.AddItem("Steven Buchanan");
		var_Items.CellValue(h0,1) = "Sales Manager";
		var_Items.CellValue(h0,2) = "London";
		h0 = var_Items.AddItem("Michael Suyama");
		var_Items.CellValue(h0,1) = "Sales Representative";
		var_Items.CellValue(h0,2) = "London";
		h0 = var_Items.AddItem("Robert King");
		var_Items.CellValue(h0,1) = "Sales Representative";
		var_Items.CellValue(h0,2) = "London";
		h0 = var_Items.AddItem("Laura Callahan");
		var_Items.CellValue(h0,1) = "Inside Sales Coordinator";
		var_Items.CellValue(h0,2) = "Seattle";
		h0 = var_Items.AddItem("Anne Dodsworth");
		var_Items.CellValue(h0,1) = "Sales Representative";
		var_Items.CellValue(h0,2) = "London";
	G2antt1.EndUpdate();
}
</SCRIPT>
</BODY>

1040
How can I specify that all sequences in the filter pattern must be included in the list
<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
function Init()
{
	G2antt1.BeginUpdate();
	G2antt1.Chart.PaneWidth(true) = 0;
	G2antt1.ColumnAutoResize = true;
	G2antt1.ContinueColumnScroll = 0;
	G2antt1.FocusColumnIndex = 1;
	G2antt1.MarkSearchColumn = false;
	G2antt1.SearchColumnIndex = 1;
	G2antt1.FilterBarPromptVisible = true;
	G2antt1.FilterBarPromptType = 1;
	G2antt1.FilterBarPromptPattern = "london manager";
	var var_Columns = G2antt1.Columns;
		var_Columns.Add("Name").Width = 96;
		var_Columns.Add("Title").Width = 96;
		var_Columns.Add("City");
	var var_Items = G2antt1.Items;
		var h0 = var_Items.AddItem("Nancy Davolio");
		var_Items.CellValue(h0,1) = "Sales Representative";
		var_Items.CellValue(h0,2) = "Seattle";
		h0 = var_Items.AddItem("Andrew Fuller");
		var_Items.CellValue(h0,1) = "Vice President, Sales";
		var_Items.CellValue(h0,2) = "Tacoma";
		var_Items.SelectItem(h0) = true;
		h0 = var_Items.AddItem("Janet Leverling");
		var_Items.CellValue(h0,1) = "Sales Representative";
		var_Items.CellValue(h0,2) = "Kirkland";
		h0 = var_Items.AddItem("Margaret Peacock");
		var_Items.CellValue(h0,1) = "Sales Representative";
		var_Items.CellValue(h0,2) = "Redmond";
		h0 = var_Items.AddItem("Steven Buchanan");
		var_Items.CellValue(h0,1) = "Sales Manager";
		var_Items.CellValue(h0,2) = "London";
		h0 = var_Items.AddItem("Michael Suyama");
		var_Items.CellValue(h0,1) = "Sales Representative";
		var_Items.CellValue(h0,2) = "London";
		h0 = var_Items.AddItem("Robert King");
		var_Items.CellValue(h0,1) = "Sales Representative";
		var_Items.CellValue(h0,2) = "London";
		h0 = var_Items.AddItem("Laura Callahan");
		var_Items.CellValue(h0,1) = "Inside Sales Coordinator";
		var_Items.CellValue(h0,2) = "Seattle";
		h0 = var_Items.AddItem("Anne Dodsworth");
		var_Items.CellValue(h0,1) = "Sales Representative";
		var_Items.CellValue(h0,2) = "London";
	G2antt1.EndUpdate();
}
</SCRIPT>
</BODY>

1039
How do I change at runtime the filter prompt
<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
function Init()
{
	G2antt1.BeginUpdate();
	G2antt1.ColumnAutoResize = true;
	G2antt1.ContinueColumnScroll = 0;
	G2antt1.FocusColumnIndex = 1;
	G2antt1.Chart.PaneWidth(true) = 0;
	G2antt1.MarkSearchColumn = false;
	G2antt1.SearchColumnIndex = 1;
	G2antt1.FilterBarPromptVisible = true;
	G2antt1.FilterBarPromptPattern = "london manager";
	var var_Columns = G2antt1.Columns;
		var_Columns.Add("Name").Width = 96;
		var_Columns.Add("Title").Width = 96;
		var_Columns.Add("City");
	var var_Items = G2antt1.Items;
		var h0 = var_Items.AddItem("Nancy Davolio");
		var_Items.CellValue(h0,1) = "Sales Representative";
		var_Items.CellValue(h0,2) = "Seattle";
		h0 = var_Items.AddItem("Andrew Fuller");
		var_Items.CellValue(h0,1) = "Vice President, Sales";
		var_Items.CellValue(h0,2) = "Tacoma";
		var_Items.SelectItem(h0) = true;
		h0 = var_Items.AddItem("Janet Leverling");
		var_Items.CellValue(h0,1) = "Sales Representative";
		var_Items.CellValue(h0,2) = "Kirkland";
		h0 = var_Items.AddItem("Margaret Peacock");
		var_Items.CellValue(h0,1) = "Sales Representative";
		var_Items.CellValue(h0,2) = "Redmond";
		h0 = var_Items.AddItem("Steven Buchanan");
		var_Items.CellValue(h0,1) = "Sales Manager";
		var_Items.CellValue(h0,2) = "London";
		h0 = var_Items.AddItem("Michael Suyama");
		var_Items.CellValue(h0,1) = "Sales Representative";
		var_Items.CellValue(h0,2) = "London";
		h0 = var_Items.AddItem("Robert King");
		var_Items.CellValue(h0,1) = "Sales Representative";
		var_Items.CellValue(h0,2) = "London";
		h0 = var_Items.AddItem("Laura Callahan");
		var_Items.CellValue(h0,1) = "Inside Sales Coordinator";
		var_Items.CellValue(h0,2) = "Seattle";
		h0 = var_Items.AddItem("Anne Dodsworth");
		var_Items.CellValue(h0,1) = "Sales Representative";
		var_Items.CellValue(h0,2) = "London";
	G2antt1.EndUpdate();
}
</SCRIPT>
</BODY>

1038
How do I specify to filter only a single column when using the filter prompt
<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
function Init()
{
	G2antt1.BeginUpdate();
	G2antt1.ColumnAutoResize = true;
	G2antt1.ContinueColumnScroll = 0;
	G2antt1.FocusColumnIndex = 1;
	G2antt1.Chart.PaneWidth(true) = 0;
	G2antt1.MarkSearchColumn = false;
	G2antt1.SearchColumnIndex = 1;
	G2antt1.FilterBarPromptVisible = true;
	G2antt1.FilterBarPromptColumns = "2,3";
	G2antt1.FilterBarPromptPattern = "london";
	var var_Columns = G2antt1.Columns;
		var_Columns.Add("Name").Width = 96;
		var_Columns.Add("Title").Width = 96;
		var_Columns.Add("City");
	var var_Items = G2antt1.Items;
		var h0 = var_Items.AddItem("Nancy Davolio");
		var_Items.CellValue(h0,1) = "Sales Representative";
		var_Items.CellValue(h0,2) = "Seattle";
		h0 = var_Items.AddItem("Andrew Fuller");
		var_Items.CellValue(h0,1) = "Vice President, Sales";
		var_Items.CellValue(h0,2) = "Tacoma";
		var_Items.SelectItem(h0) = true;
		h0 = var_Items.AddItem("Janet Leverling");
		var_Items.CellValue(h0,1) = "Sales Representative";
		var_Items.CellValue(h0,2) = "Kirkland";
		h0 = var_Items.AddItem("Margaret Peacock");
		var_Items.CellValue(h0,1) = "Sales Representative";
		var_Items.CellValue(h0,2) = "Redmond";
		h0 = var_Items.AddItem("Steven Buchanan");
		var_Items.CellValue(h0,1) = "Sales Manager";
		var_Items.CellValue(h0,2) = "London";
		h0 = var_Items.AddItem("Michael Suyama");
		var_Items.CellValue(h0,1) = "Sales Representative";
		var_Items.CellValue(h0,2) = "London";
		h0 = var_Items.AddItem("Robert King");
		var_Items.CellValue(h0,1) = "Sales Representative";
		var_Items.CellValue(h0,2) = "London";
		h0 = var_Items.AddItem("Laura Callahan");
		var_Items.CellValue(h0,1) = "Inside Sales Coordinator";
		var_Items.CellValue(h0,2) = "Seattle";
		h0 = var_Items.AddItem("Anne Dodsworth");
		var_Items.CellValue(h0,1) = "Sales Representative";
		var_Items.CellValue(h0,2) = "London";
	G2antt1.EndUpdate();
}
</SCRIPT>
</BODY>

1037
How do I change the prompt or the caption being displayed in the filter bar
<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
function Init()
{
	G2antt1.BeginUpdate();
	G2antt1.Chart.PaneWidth(true) = 0;
	G2antt1.ColumnAutoResize = true;
	G2antt1.ContinueColumnScroll = 0;
	G2antt1.FocusColumnIndex = 1;
	G2antt1.MarkSearchColumn = false;
	G2antt1.SearchColumnIndex = 1;
	G2antt1.FilterBarPromptVisible = true;
	G2antt1.FilterBarPrompt = "changed";
	var var_Columns = G2antt1.Columns;
		var_Columns.Add("Name").Width = 96;
		var_Columns.Add("Title").Width = 96;
		var_Columns.Add("City");
	G2antt1.EndUpdate();
}
</SCRIPT>
</BODY>

1036
How do I enable the filter prompt feature

<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
function Init()
{
	G2antt1.BeginUpdate();
	G2antt1.Chart.PaneWidth(true) = 0;
	G2antt1.ColumnAutoResize = true;
	G2antt1.ContinueColumnScroll = 0;
	G2antt1.FocusColumnIndex = 1;
	G2antt1.MarkSearchColumn = false;
	G2antt1.SearchColumnIndex = 1;
	G2antt1.FilterBarPromptVisible = true;
	var var_Columns = G2antt1.Columns;
		var_Columns.Add("Name").Width = 96;
		var_Columns.Add("Title").Width = 96;
		var_Columns.Add("City");
	var var_Items = G2antt1.Items;
		var h0 = var_Items.AddItem("Nancy Davolio");
		var_Items.CellValue(h0,1) = "Sales Representative";
		var_Items.CellValue(h0,2) = "Seattle";
		h0 = var_Items.AddItem("Andrew Fuller");
		var_Items.CellValue(h0,1) = "Vice President, Sales";
		var_Items.CellValue(h0,2) = "Tacoma";
		var_Items.SelectItem(h0) = true;
		h0 = var_Items.AddItem("Janet Leverling");
		var_Items.CellValue(h0,1) = "Sales Representative";
		var_Items.CellValue(h0,2) = "Kirkland";
		h0 = var_Items.AddItem("Margaret Peacock");
		var_Items.CellValue(h0,1) = "Sales Representative";
		var_Items.CellValue(h0,2) = "Redmond";
		h0 = var_Items.AddItem("Steven Buchanan");
		var_Items.CellValue(h0,1) = "Sales Manager";
		var_Items.CellValue(h0,2) = "London";
		h0 = var_Items.AddItem("Michael Suyama");
		var_Items.CellValue(h0,1) = "Sales Representative";
		var_Items.CellValue(h0,2) = "London";
		h0 = var_Items.AddItem("Robert King");
		var_Items.CellValue(h0,1) = "Sales Representative";
		var_Items.CellValue(h0,2) = "London";
		h0 = var_Items.AddItem("Laura Callahan");
		var_Items.CellValue(h0,1) = "Inside Sales Coordinator";
		var_Items.CellValue(h0,2) = "Seattle";
		h0 = var_Items.AddItem("Anne Dodsworth");
		var_Items.CellValue(h0,1) = "Sales Representative";
		var_Items.CellValue(h0,2) = "London";
	G2antt1.EndUpdate();
}
</SCRIPT>
</BODY>

1035
How can I unselect all bars
<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
function Init()
{
	G2antt1.Columns.Add("Task");
	G2antt1.Chart.FirstVisibleDate = "1/1/2001";
	var var_Items = G2antt1.Items;
		var_Items.AddBar(var_Items.AddItem("Task 1"),"Task","1/2/2001","1/4/2001","K1",null);
		var_Items.AddBar(var_Items.AddItem("Task 2"),"Task","1/2/2001","1/4/2001","K2",null);
		var_Items.AddBar(var_Items.AddItem("Task 3"),"Task","1/2/2001","1/4/2001","K3",null);
		var_Items.AddBar(var_Items.AddItem("Task 4"),"Task","1/2/2001","1/4/2001","K4",null);
		var_Items.ItemBar(0,"<*>",257) = true;
		var_Items.ItemBar(0,"<*>",257) = false;
}
</SCRIPT>
</BODY>

1034
Can I select bars using a pattern using wild characters as *,

<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
function Init()
{
	G2antt1.Columns.Add("Task");
	var var_Chart = G2antt1.Chart;
		var_Chart.FirstVisibleDate = "1/1/2001";
		var_Chart.PaneWidth(false) = 48;
		var_Chart.ShowNonworkingDates = false;
	var var_Items = G2antt1.Items;
		var h = var_Items.AddItem("Task 1");
		var_Items.AddBar(h,"Task","1/2/2001","1/4/2001","K1K","K1K");
		var_Items.AddBar(h,"Task","1/5/2001","1/7/2001","K2M","K2M");
		var_Items.AddBar(h,"Task","1/9/2001","1/11/2001","K3K","K3K");
		var_Items.AddBar(var_Items.AddItem("Task 2"),"Task","1/2/2001","1/4/2001","Q","Q");
		var_Items.AddBar(var_Items.AddItem("Task 4"),"Task","1/2/2001","1/4/2001","M","M");
		var_Items.ItemBar(0,"<K*K>",257) = true;
}
</SCRIPT>
</BODY>

1033
How can I select all bars in the item with a specified key

<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
function Init()
{
	G2antt1.Columns.Add("Task");
	G2antt1.Chart.FirstVisibleDate = "1/1/2001";
	G2antt1.Chart.PaneWidth(false) = 48;
	var var_Items = G2antt1.Items;
		var h = var_Items.AddItem("Task 1");
		var_Items.AddBar(h,"Task","1/2/2001","1/4/2001","K1","K1");
		var_Items.AddBar(h,"Task","1/5/2001","1/7/2001","K2","K2");
		var_Items.AddBar(h,"Task","1/9/2001","1/11/2001","P","P");
		var_Items.AddBar(var_Items.AddItem("Task 2"),"Task","1/2/2001","1/4/2001","Q","Q");
		var_Items.AddBar(var_Items.AddItem("Task 4"),"Task","1/2/2001","1/4/2001","M","M");
		var_Items.ItemBar(h,"<K*>",257) = true;
}
</SCRIPT>
</BODY>

1032
How can I select all bars in the specified item

<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
function Init()
{
	G2antt1.Columns.Add("Task");
	G2antt1.Chart.FirstVisibleDate = "1/1/2001";
	G2antt1.Chart.PaneWidth(false) = 48;
	var var_Items = G2antt1.Items;
		var h = var_Items.AddItem("Task 1");
		var_Items.AddBar(h,"Task","1/2/2001","1/4/2001","K1","K1");
		var_Items.AddBar(h,"Task","1/5/2001","1/7/2001","K2","K2");
		var_Items.AddBar(h,"Task","1/9/2001","1/11/2001","P","P");
		var_Items.AddBar(var_Items.AddItem("Task 2"),"Task","1/2/2001","1/4/2001","Q","Q");
		var_Items.AddBar(var_Items.AddItem("Task 4"),"Task","1/2/2001","1/4/2001","M","M");
		var_Items.ItemBar(h,"<*>",257) = true;
}
</SCRIPT>
</BODY>

1031
How can I select all bars with a specified key

<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
function Init()
{
	G2antt1.Columns.Add("Task");
	G2antt1.Chart.FirstVisibleDate = "1/1/2001";
	G2antt1.Chart.PaneWidth(false) = 48;
	var var_Items = G2antt1.Items;
		var h = var_Items.AddItem("Task 1");
		var_Items.AddBar(h,"Task","1/2/2001","1/4/2001","K1","K1");
		var_Items.AddBar(h,"Task","1/5/2001","1/7/2001","K2","K2");
		var_Items.AddBar(h,"Task","1/8/2001","1/10/2001","P","P");
		var_Items.AddBar(var_Items.AddItem("Task 2"),"Task","1/2/2001","1/4/2001","Q","Q");
		var_Items.AddBar(var_Items.AddItem("Task 4"),"Task","1/2/2001","1/4/2001","P","P");
		var_Items.ItemBar(0,"<P>",257) = true;
}
</SCRIPT>
</BODY>

1030
How can I select all bars

<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
function Init()
{
	G2antt1.Columns.Add("Task");
	G2antt1.Chart.FirstVisibleDate = "1/1/2001";
	G2antt1.Chart.PaneWidth(false) = 48;
	var var_Items = G2antt1.Items;
		var h = var_Items.AddItem("Task 1");
		var_Items.AddBar(h,"Task","1/2/2001","1/4/2001","K1","K1");
		var_Items.AddBar(h,"Task","1/5/2001","1/7/2001","K2","K2");
		var_Items.AddBar(h,"Task","1/8/2001","1/10/2001","P","P");
		var_Items.AddBar(var_Items.AddItem("Task 2"),"Task","1/2/2001","1/4/2001","Q","Q");
		var_Items.AddBar(var_Items.AddItem("Task 4"),"Task","1/2/2001","1/4/2001","M","M");
		var_Items.ItemBar(0,"<*>",257) = true;
}
</SCRIPT>
</BODY>

1029
I have the AllowInsideZoom property on True, but I am still not able to use the inside zoom feature

<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
function Init()
{
	G2antt1.BeginUpdate();
	var var_Chart = G2antt1.Chart;
		var_Chart.FirstVisibleDate = "1/1/2001";
		var_Chart.PaneWidth(0) = 0;
		var_Chart.LevelCount = 3;
		var_Chart.FirstWeekDay = 1;
		var_Chart.Level(0).Label = "Week: <%ww%>";
		var var_Level = var_Chart.Level(1);
			var_Level.Label = "<%dddd%>";
			var_Level.Alignment = 1;
		var_Chart.Level(2).Label = 65536;
		var_Chart.NonworkingHours = 16773375;
		var_Chart.ShowNonworkingUnits = false;
		var_Chart.ShowNonworkingDates = false;
		var_Chart.ShowNonworkingHours = false;
		var_Chart.AllowInsideZoom = true;
		var var_InsideZoomFormat = var_Chart.DefaultInsideZoomFormat;
			var_InsideZoomFormat.InsideUnit = 1048576;
			var_InsideZoomFormat.InsideLabel = "<b><%nn%></b>";
		var_Chart.InsideZooms.Add("1/1/2001 10:00:00 AM");
	G2antt1.EndUpdate();
}
</SCRIPT>
</BODY>

1028
Is there any option to find out if two bars intersects

<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
function Init()
{
	G2antt1.BeginUpdate();
	G2antt1.DefaultItemHeight = 22;
	G2antt1.Columns.Add("InterectBars");
	var var_Chart = G2antt1.Chart;
		var_Chart.PaneWidth(false) = 48;
		var_Chart.FirstVisibleDate = "1/1/2001";
		var_Chart.Bars.Item("Task").OverlaidType = 1;
	var var_Items = G2antt1.Items;
		var h = var_Items.AddItem("");
		var_Items.AddBar(h,"Task","1/2/2001","1/4/2001","A","A");
		var_Items.AddBar(h,"Task","1/3/2001","1/5/2001","B","B");
		var_Items.CellValue(h,0) = var_Items.IntersectBars(h,"A",h,"B");
		h = var_Items.AddItem("");
		var_Items.AddBar(h,"Task","1/6/2001","1/9/2001","A","A");
		var_Items.AddBar(h,"Task","1/10/2001","1/13/2001","B","B");
		var_Items.CellValue(h,0) = var_Items.IntersectBars(h,"A",h,"B");
		h = var_Items.AddItem("");
		var_Items.AddBar(h,"Task","1/6/2001","1/9/2001","B","B");
		var_Items.AddBar(h,"Task","1/10/2001","1/13/2001","A","A");
		var_Items.CellValue(h,0) = var_Items.IntersectBars(h,"A",h,"B");
	G2antt1.EndUpdate();
}
</SCRIPT>
</BODY>

1027
How can I find if a specified hour is a working or non-working hour, when using the ItemNonWorkingUnits

<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
function Init()
{
	G2antt1.BeginUpdate();
	G2antt1.Columns.Add("Hour").FormatColumn = "hour(value)";
	G2antt1.Columns.Add("Type").FormatColumn = "value != 0 ? 'non-working' : 'working'";
	var var_Chart = G2antt1.Chart;
		var_Chart.FirstVisibleDate = "1/1/2001";
		var_Chart.PaneWidth(0) = 164;
		var_Chart.FirstWeekDay = 1;
		var_Chart.LevelCount = 2;
		var_Chart.UnitScale = 65536;
		var_Chart.NonworkingHours = 1;
	var var_Items = G2antt1.Items;
		var h = var_Items.AddItem("1/1/2001");
		var w = G2antt1.Chart.IsNonworkingDate(G2antt1.Items.CellValue(h,0),null);
		var_Items.CellValue(h,1) = w;
		h = var_Items.AddItem("1/1/2001");
		var_Items.ItemNonworkingUnits(h,false) = "hour(value) >0 ";
		w = G2antt1.Chart.IsNonworkingDate(G2antt1.Items.CellValue(h,0),h);
		var_Items.CellValue(h,1) = w;
	G2antt1.EndUpdate();
}
</SCRIPT>
</BODY>

1026
How can I find if a specified hour is a working or non-working hour
<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
function Init()
{
	G2antt1.BeginUpdate();
	G2antt1.Columns.Add("Hour").FormatColumn = "hour(value)";
	G2antt1.Columns.Add("Type").FormatColumn = "value != 0 ? 'non-working' : 'working'";
	var var_Chart = G2antt1.Chart;
		var_Chart.FirstVisibleDate = "1/1/2001";
		var_Chart.PaneWidth(0) = 164;
		var_Chart.FirstWeekDay = 1;
		var_Chart.LevelCount = 2;
		var_Chart.UnitScale = 65536;
		var_Chart.NonworkingHours = 1;
	var var_Items = G2antt1.Items;
		var h = var_Items.AddItem("1/1/2001");
		var w = G2antt1.Chart.IsNonworkingDate(G2antt1.Items.CellValue(h,0),null);
		var_Items.CellValue(h,1) = w;
		h = var_Items.AddItem("1/1/2001 1:00:00 AM");
		w = G2antt1.Chart.IsNonworkingDate(G2antt1.Items.CellValue(h,0),null);
		var_Items.CellValue(h,1) = w;
	G2antt1.EndUpdate();
}
</SCRIPT>
</BODY>

1025
How can I find if a specified date-time is a working or non-working unit, when using the ItemNonWorkingUnits
<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
function Init()
{
	G2antt1.BeginUpdate();
	G2antt1.Columns.Add("Date").Width = 48;
	G2antt1.Columns.Add("Type").FormatColumn = "value != 0 ? 'non-working' : 'working'";
	var var_Chart = G2antt1.Chart;
		var_Chart.FirstVisibleDate = "1/1/2001";
		var_Chart.PaneWidth(0) = 128;
		var_Chart.FirstWeekDay = 1;
		var_Chart.LevelCount = 2;
	var var_Items = G2antt1.Items;
		var h = var_Items.AddItem("1/1/2001");
		var w = G2antt1.Chart.IsNonworkingDate(G2antt1.Items.CellValue(h,0),null);
		var_Items.CellValue(h,1) = w;
		h = var_Items.AddItem("1/1/2001");
		var_Items.ItemNonworkingUnits(h,false) = "weekday(value) in (1)";
		w = G2antt1.Chart.IsNonworkingDate(G2antt1.Items.CellValue(h,0),h);
		var_Items.CellValue(h,1) = w;
	G2antt1.EndUpdate();
}
</SCRIPT>
</BODY>

1024
How can I find if a specified date-time is a working or non-working unit
<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
function Init()
{
	G2antt1.BeginUpdate();
	G2antt1.Columns.Add("Date").Width = 48;
	G2antt1.Columns.Add("Type").FormatColumn = "value != 0 ? 'non-working' : 'working'";
	var var_Chart = G2antt1.Chart;
		var_Chart.FirstVisibleDate = "1/1/2001";
		var_Chart.PaneWidth(0) = 128;
		var_Chart.FirstWeekDay = 1;
		var_Chart.LevelCount = 2;
	var var_Items = G2antt1.Items;
		var h = var_Items.AddItem("1/1/2001");
		var w = G2antt1.Chart.IsNonworkingDate(G2antt1.Items.CellValue(h,0),null);
		var_Items.CellValue(h,1) = w;
		h = var_Items.AddItem("1/6/2001");
		w = G2antt1.Chart.IsNonworkingDate(G2antt1.Items.CellValue(h,0),null);
		var_Items.CellValue(h,1) = w;
	G2antt1.EndUpdate();
}
</SCRIPT>
</BODY>

1023
When zooming to days, the non-working part of the chart occupies some not useful space. Can I reduce it

<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
function Init()
{
	G2antt1.BeginUpdate();
	var var_Chart = G2antt1.Chart;
		var_Chart.PaneWidth(false) = 48;
		var_Chart.FirstVisibleDate = "1/3/2002";
		var_Chart.Bars.Add("Task:Split").Shortcut = "Task";
		var_Chart.LevelCount = 2;
		var_Chart.DrawGridLines = -1;
		var_Chart.FirstWeekDay = 1;
		var_Chart.Level(0).Label = "Week: <%ww%>";
		var var_Level = var_Chart.Level(1);
			var_Level.Label = "<%d%>/<%m2%>";
			var_Level.FormatLabel = "weekday(dvalue) in (0,6) ? 'end' : value";
		var_Chart.UnitWidth = 32;
		var_Chart.UnitWidthNonworking = -32;
	G2antt1.Columns.Add("Task");
	var var_Items = G2antt1.Items;
		var h = var_Items.AddItem("Default");
		var_Items.AddBar(h,"Task","1/4/2002","1/8/2002","A",null);
	G2antt1.EndUpdate();
}
</SCRIPT>
</BODY>

1022
My chart display only working hours, but when zooming to days, each day shows the non-working part of the day too, even if I use the ShowNonWorkingUnits property on False. What am I doing wrong

<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
function Init()
{
	G2antt1.BeginUpdate();
	var var_Chart = G2antt1.Chart;
		var_Chart.PaneWidth(false) = 48;
		var_Chart.FirstVisibleDate = "1/3/2002 10:00:00 AM";
		var_Chart.Bars.Add("Task:Split").Shortcut = "Task";
		var_Chart.LevelCount = 2;
		var_Chart.DrawGridLines = -1;
		var_Chart.FirstWeekDay = 1;
		var_Chart.Level(0).Label = "<%ww%>";
		var var_Level = var_Chart.Level(1);
			var_Level.Label = "<%dd%>";
			var_Level.Unit = 65536;
			var_Level.Count = 24;
		var_Chart.NonworkingHours = 16761855;
		var_Chart.ShowNonworkingUnits = false;
		var_Chart.ShowNonworkingHours = false;
		var_Chart.UnitWidth = 32;
	G2antt1.Columns.Add("Task");
	var var_Items = G2antt1.Items;
		var h = var_Items.AddItem("Default");
		var_Items.AddBar(h,"Task","1/4/2002 10:00:00 AM","1/8/2002 2:00:00 AM","A",null);
		var_Items.ItemBar(h,"A",20) = true;
	G2antt1.EndUpdate();
}
</SCRIPT>
</BODY>

1021
I need to display only working hours and weekend part, but for some items I need another non-working part. Is this possible

<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
function Init()
{
	G2antt1.BeginUpdate();
	var var_Chart = G2antt1.Chart;
		var_Chart.PaneWidth(false) = 48;
		var_Chart.FirstVisibleDate = "1/3/2002";
		var_Chart.Bars.Add("Task:Split").Shortcut = "Task";
		var_Chart.LevelCount = 2;
		var_Chart.DrawGridLines = -1;
		var var_Level = var_Chart.Level(0);
			var_Level.Label = "<%ddd%>";
			var_Level.FormatLabel = "weekday(dvalue) in (0,6) ? '' : value";
		var var_Level1 = var_Chart.Level(1);
			var_Level1.Label = 65536;
			var_Level1.FormatLabel = "weekday(dvalue) in (0,6) ? 'end' : value";
		var_Chart.NonworkingHours = 16761855;
		var_Chart.ShowNonworkingUnits = false;
		var_Chart.ShowNonworkingHours = false;
		var_Chart.UnitWidthNonworking = -24;
	G2antt1.Columns.Add("Task");
	var var_Items = G2antt1.Items;
		var h = var_Items.AddItem("Default");
		var_Items.AddBar(h,"Task","1/4/2002","1/8/2002","A",null);
		var_Items.ItemBar(h,"A",20) = true;
		h = var_Items.AddItem("Friday");
		var_Items.AddBar(h,"Task","1/3/2002","1/7/2002 12:00:00 PM","A",null);
		var_Items.ItemBar(h,"A",20) = true;
		var_Items.ItemNonworkingUnits(h,false) = "weekday(value) in (0,6,5) or hour(value)<10 or hour(value)>=14";
		h = var_Items.AddItem("Till 13");
		var_Items.AddBar(h,"Task","1/4/2002","1/7/2002 12:00:00 PM","A",null);
		var_Items.ItemBar(h,"A",20) = true;
		var_Items.ItemNonworkingUnits(h,false) = "weekday(value) in (0,6) or hour(value)<10 or hour(value)>=13";
	G2antt1.EndUpdate();
}
</SCRIPT>
</BODY>

1020
I can display the working hours, but how can I hide the weekend or non-working part of the chart when using the ShowNonWorkingUnits property on False

<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
function Init()
{
	var var_Chart = G2antt1.Chart;
		var_Chart.PaneWidth(false) = 0;
		var_Chart.FirstVisibleDate = "1/3/2002";
		var_Chart.LevelCount = 2;
		var_Chart.Level(0).Label = "<%ddd%>";
		var_Chart.Level(1).Label = 65536;
		var_Chart.NonworkingHours = 16761855;
		var_Chart.ShowNonworkingUnits = false;
		var_Chart.ShowNonworkingDates = false;
		var_Chart.ShowNonworkingHours = false;
}
</SCRIPT>
</BODY>

1019
How can I display only the working hours but uses less space for non-working part, such as weekend

<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
function Init()
{
	var var_Chart = G2antt1.Chart;
		var_Chart.PaneWidth(false) = 0;
		var_Chart.FirstVisibleDate = "1/3/2002";
		var_Chart.LevelCount = 2;
		var var_Level = var_Chart.Level(0);
			var_Level.Label = "<%ddd%>";
			var_Level.FormatLabel = "weekday(dvalue) in (0,6) ? '' : value";
		var var_Level1 = var_Chart.Level(1);
			var_Level1.Label = 65536;
			var_Level1.FormatLabel = "weekday(dvalue) in (0,6) ? 'end' : value";
		var_Chart.NonworkingHours = 16761855;
		var_Chart.ShowNonworkingUnits = false;
		var_Chart.ShowNonworkingHours = false;
		var_Chart.UnitWidthNonworking = -24;
}
</SCRIPT>
</BODY>

1018
How can I display only the working hours but uses less space for non-working part, such as weekend

<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
function Init()
{
	var var_Chart = G2antt1.Chart;
		var_Chart.PaneWidth(false) = 0;
		var_Chart.FirstVisibleDate = "1/3/2002";
		var_Chart.LevelCount = 2;
		var_Chart.Level(0).Label = "<%ddd%>";
		var var_Level = var_Chart.Level(1);
			var_Level.Label = 65536;
			var_Level.FormatLabel = "weekday(dvalue) in (0,6) ? '' : value";
		var_Chart.NonworkingHours = 16761855;
		var_Chart.ShowNonworkingUnits = false;
		var_Chart.ShowNonworkingHours = false;
		var_Chart.UnitWidthNonworking = 8;
}
</SCRIPT>
</BODY>

1017
How can I display only the working hours

<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
function Init()
{
	var var_Chart = G2antt1.Chart;
		var_Chart.PaneWidth(false) = 0;
		var_Chart.FirstVisibleDate = "1/3/2002";
		var_Chart.LevelCount = 2;
		var_Chart.Level(0).Label = "<%ddd%>";
		var_Chart.Level(1).Label = 65536;
		var_Chart.NonworkingHours = 16761855;
		var_Chart.ShowNonworkingUnits = false;
		var_Chart.ShowNonworkingHours = false;
}
</SCRIPT>
</BODY>

1016
How can I specify non-working hours

<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
function Init()
{
	var var_Chart = G2antt1.Chart;
		var_Chart.PaneWidth(false) = 0;
		var_Chart.FirstVisibleDate = "1/3/2002";
		var_Chart.LevelCount = 2;
		var_Chart.Level(0).Label = "<%ddd%>";
		var_Chart.Level(1).Label = 65536;
		var_Chart.NonworkingHours = 16761855;
}
</SCRIPT>
</BODY>

1015
How can I display the working hours for a bar

<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
function Init()
{
	G2antt1.BeginUpdate();
	var var_Columns = G2antt1.Columns;
		var_Columns.Add("Tasks");
		var var_Column = var_Columns.Add("Working");
			var_Column.Def(18) = 258;
			var_Column.Def(19) = "A";
			var_Column.FormatColumn = "(0:=round(value*24)) != 0 ? =:0 : ''";
	G2antt1.Items.AllowCellValueToItemBar = true;
	var var_Chart = G2antt1.Chart;
		var_Chart.PaneWidth(false) = 96;
		var_Chart.Bars.Add("Task:Split").Shortcut = "Task";
		var_Chart.FirstVisibleDate = "1/3/2002";
		var_Chart.LevelCount = 2;
		var_Chart.Level(0).Label = "<%ddd%>";
		var_Chart.Level(1).Label = "<%hh%>";
		var_Chart.NonworkingHours = 16761855;
		var_Chart.ShowNonworkingUnits = false;
		var_Chart.ShowNonworkingHours = false;
	var var_Items = G2antt1.Items;
		var h = var_Items.AddItem("Task 1");
		var_Items.AddBar(h,"Task","1/4/2002","1/8/2002","A",null);
		var_Items.ItemBar(h,"A",20) = true;
		h = var_Items.AddItem("Task 2");
		var_Items.AddBar(h,"Task","1/3/2002","1/4/2002","A",null);
		var_Items.ItemBar(h,"A",20) = true;
	G2antt1.EndUpdate();
}
</SCRIPT>
</BODY>

1014
Is it possible to show only working hours, showing a small part for the weekend days, and in the same time showing the bars by splitting the non-working part and keeping the working units for the bar while moving

<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
function Init()
{
	G2antt1.BeginUpdate();
	var var_Chart = G2antt1.Chart;
		var_Chart.Bars.Add("Task:Split").Shortcut = "Task";
		var_Chart.FirstVisibleDate = "1/3/2002";
		var_Chart.DrawGridLines = -1;
		var_Chart.GridLineStyle = 512;
		var_Chart.PaneWidth(0) = 0;
		var_Chart.LevelCount = 2;
		var var_Level = var_Chart.Level(0);
			var_Level.Label = "<%ddd%>";
			var_Level.Alignment = 1;
			var_Level.FormatLabel = "weekday(dvalue) in (0,6) ? `` : value";
		var var_Level1 = var_Chart.Level(1);
			var_Level1.Label = 65536;
			var_Level1.DrawGridLines = -1;
			var_Level1.FormatLabel = "weekday(dvalue) in (0,6) ? `<font ;6>weekend</font>` : value";
		var_Chart.NonworkingHours = 16761855;
		var_Chart.ShowNonworkingUnits = false;
		var_Chart.ShowNonworkingDates = true;
		var_Chart.ShowNonworkingHours = false;
		var_Chart.UnitWidthNonworking = -40;
	G2antt1.Columns.Add("Task");
	var var_Items = G2antt1.Items;
		var h = var_Items.AddItem("Task 1");
		var_Items.AddBar(h,"Task","1/4/2002","1/8/2002","A",null);
		var_Items.ItemBar(h,"A",20) = true;
	G2antt1.EndUpdate();
}
</SCRIPT>
</BODY>

1013
How can I show bars with different solid color but black border

<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
function Init()
{
	G2antt1.BeginUpdate();
	G2antt1.VisualAppearance.Add(1,"C:\\Program Files\\Exontrol\\ExG2antt.NET\\sample\\EBN\\blackbox.ebn");
	G2antt1.Columns.Add("Task");
	G2antt1.Chart.FirstVisibleDate = "1/1/2001";
	var var_Bar = G2antt1.Chart.Bars.Item("Task");
		var_Bar.Color = 16777216;
		var_Bar.Height = 15;
	G2antt1.Chart.PaneWidth(false) = 0;
	var var_Items = G2antt1.Items;
		var h = var_Items.AddItem("Task");
		var_Items.AddBar(h,"Task","1/2/2001","1/5/2001","",null);
		var_Items.ItemBar(h,"",33) = 65535;
		h = var_Items.AddItem("Task");
		var_Items.AddBar(h,"Task","1/2/2001","1/5/2001","",null);
		var_Items.ItemBar(h,"",33) = 255;
	G2antt1.EndUpdate();
}
</SCRIPT>
</BODY>

1012
I want to display a vertical line for each week, while I still need a vertical separator for each day. Is this possible

<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
function Init()
{
	G2antt1.GridLineColor = 15790320;
	var var_Chart = G2antt1.Chart;
		var_Chart.PaneWidth(false) = 0;
		var_Chart.DrawGridLines = -1;
		var_Chart.NonworkingDays = 0;
		var_Chart.LevelCount = 2;
		var var_Level = var_Chart.Level(0);
			var_Level.DrawGridLines = true;
			var_Level.GridLineColor = 0;
		var var_Level1 = var_Chart.Level(1);
			var_Level1.DrawGridLines = true;
			var_Level1.GridLineColor = 15790320;
}
</SCRIPT>
</BODY>

1011
How can I display the levels as year, day, AM and PM for each day
<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
function Init()
{
	var var_Chart = G2antt1.Chart;
		var_Chart.PaneWidth(false) = 0;
		var_Chart.FirstVisibleDate = "12/1/2009";
		var_Chart.UnitWidth = 22;
		var_Chart.LevelCount = 3;
		var_Chart.Level(0).Label = "<%yyyy%>";
		var_Chart.Level(1).Label = "<%mm%>/<%dd%>";
		var var_Level = var_Chart.Level(2);
			var_Level.Label = "<%AM/PM%>";
			var_Level.Count = 12;
}
</SCRIPT>
</BODY>

1010
How can I change the pattern for a specified time unit, in the chart area

<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
function Init()
{
	G2antt1.BeginUpdate();
	var var_Chart = G2antt1.Chart;
		var_Chart.PaneWidth(false) = 0;
		var_Chart.LevelCount = 2;
		var_Chart.FirstVisibleDate = "1/1/2008";
		var_Chart.AllowInsideZoom = true;
		var_Chart.AllowResizeInsideZoom = false;
		var_Chart.InsideZoomOnDblClick = false;
		var var_InsideZoomFormat = var_Chart.DefaultInsideZoomFormat;
			var_InsideZoomFormat.PatternChart = 6;
			var_InsideZoomFormat.PatternColorChart = 255;
		var var_InsideZooms = var_Chart.InsideZooms;
			var_InsideZooms.SplitBaseLevel = false;
			var_InsideZooms.DefaultWidth = 18;
			var_InsideZooms.Add("1/4/2008").AllowInsideFormat = false;
	G2antt1.EndUpdate();
}
</SCRIPT>
</BODY>

1009
How can I hide the non-working hours, but still display the non-working days with even less space

<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
function Init()
{
	G2antt1.BeginUpdate();
	var var_Chart = G2antt1.Chart;
		var_Chart.FirstVisibleDate = "11/19/2009";
		var_Chart.DrawGridLines = -1;
		var_Chart.GridLineStyle = 512;
		var_Chart.PaneWidth(0) = 0;
		var_Chart.LevelCount = 2;
		var var_Level = var_Chart.Level(0);
			var_Level.Label = "<%dddd%>";
			var_Level.Alignment = 1;
			var_Level.FormatLabel = "weekday(dvalue) in (0,6) ? `` : value";
		var var_Level1 = var_Chart.Level(1);
			var_Level1.Label = 65536;
			var_Level1.DrawGridLines = -1;
			var_Level1.FormatLabel = "weekday(dvalue) in (0,6) ? `<font ;6>weekend</font>` : value";
		var_Chart.NonworkingHours = 16761855;
		var_Chart.ShowNonworkingUnits = false;
		var_Chart.ShowNonworkingDates = true;
		var_Chart.ShowNonworkingHours = false;
		var_Chart.UnitWidth = 32;
		var_Chart.UnitWidthNonworking = -32;
	G2antt1.EndUpdate();
}
</SCRIPT>
</BODY>

1008
How can I hide the non-working hours, but still display the non-working days with less space

<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
function Init()
{
	G2antt1.BeginUpdate();
	var var_Chart = G2antt1.Chart;
		var_Chart.FirstVisibleDate = "11/19/2009";
		var_Chart.DrawGridLines = -1;
		var_Chart.GridLineStyle = 512;
		var_Chart.PaneWidth(0) = 0;
		var_Chart.LevelCount = 2;
		var var_Level = var_Chart.Level(0);
			var_Level.Label = "<%dddd%>";
			var_Level.Alignment = 1;
			var_Level.FormatLabel = "weekday(dvalue) in (0,6) ? `<font ;6>` + value + `</font>` : value";
		var var_Level1 = var_Chart.Level(1);
			var_Level1.Label = 65536;
			var_Level1.DrawGridLines = -1;
			var_Level1.FormatLabel = "weekday(dvalue) in (0,6) ? `<font ;6>` + value + `</font>` : value";
		var_Chart.NonworkingHours = 16761855;
		var_Chart.ShowNonworkingUnits = false;
		var_Chart.ShowNonworkingDates = true;
		var_Chart.ShowNonworkingHours = false;
		var_Chart.UnitWidth = 32;
		var_Chart.UnitWidthNonworking = 12;
	G2antt1.EndUpdate();
}
</SCRIPT>
</BODY>

1007
How can I hide the non-working hours, but still display the non-working days

<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
function Init()
{
	G2antt1.BeginUpdate();
	var var_Chart = G2antt1.Chart;
		var_Chart.FirstVisibleDate = "11/19/2009";
		var_Chart.DrawGridLines = -1;
		var_Chart.GridLineStyle = 512;
		var_Chart.PaneWidth(0) = 0;
		var_Chart.LevelCount = 2;
		var var_Level = var_Chart.Level(0);
			var_Level.Label = "<%dddd%>";
			var_Level.Alignment = 1;
		var var_Level1 = var_Chart.Level(1);
			var_Level1.Label = 65536;
			var_Level1.DrawGridLines = -1;
		var_Chart.NonworkingHours = 16761855;
		var_Chart.ShowNonworkingUnits = false;
		var_Chart.ShowNonworkingDates = true;
		var_Chart.ShowNonworkingHours = false;
	G2antt1.EndUpdate();
}
</SCRIPT>
</BODY>

1006
How can I hide the non-working hours, and the non-working days

<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
function Init()
{
	G2antt1.BeginUpdate();
	var var_Chart = G2antt1.Chart;
		var_Chart.FirstVisibleDate = "11/19/2009";
		var_Chart.DrawGridLines = -1;
		var_Chart.GridLineStyle = 512;
		var_Chart.PaneWidth(0) = 0;
		var_Chart.LevelCount = 2;
		var var_Level = var_Chart.Level(0);
			var_Level.Label = "<%dddd%>";
			var_Level.Alignment = 1;
		var var_Level1 = var_Chart.Level(1);
			var_Level1.Label = 65536;
			var_Level1.DrawGridLines = -1;
		var_Chart.NonworkingHours = 16761855;
		var_Chart.ShowNonworkingUnits = false;
		var_Chart.ShowNonworkingDates = false;
		var_Chart.ShowNonworkingHours = false;
	G2antt1.EndUpdate();
}
</SCRIPT>
</BODY>

1005
Can I highlights the non-working hours while my chart shows days

<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
function Init()
{
	var var_Chart = G2antt1.Chart;
		var_Chart.PaneWidth(false) = 0;
		var_Chart.FirstVisibleDate = "1/1/2001";
		var_Chart.UnitWidth = 48;
		var_Chart.LevelCount = 2;
		var var_Level = var_Chart.Level(1);
			var_Level.Label = "<%d%>";
			var_Level.Unit = 65536;
			var_Level.Count = 24;
		var_Chart.NonworkingHours = 127;
}
</SCRIPT>
</BODY>

1004
How can I reduce the space/area being occupied by non-working units days or hours (method 2)

<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
function Init()
{
	G2antt1.BeginUpdate();
	G2antt1.Columns.Add("Task");
	var var_Chart = G2antt1.Chart;
		var_Chart.FirstWeekDay = 1;
		var_Chart.LevelCount = 2;
		var_Chart.FirstVisibleDate = "1/1/2001";
		var_Chart.PaneWidth(false) = 64;
		var_Chart.UnitWidthNonworking = -8;
		var_Chart.Level(1).FormatLabel = "weekday(dvalue) in (0,6) ? '.' : value";
	var var_Items = G2antt1.Items;
		var h = var_Items.AddItem("Task 1");
		var_Items.AddBar(h,"Task","1/2/2001","1/4/2001","K1",null);
		var_Items.AddBar(h,"Task","1/5/2001","1/6/2001","K2",null);
		var_Items.AddBar(var_Items.AddItem("Task 2"),"Task","1/2/2001","1/4/2001","K3",null);
		var_Items.AddBar(var_Items.AddItem("Task 4"),"Task","1/2/2001","1/4/2001","K4",null);
		var_Items.ItemBar(h,"<*>",33) = 255;
	G2antt1.EndUpdate();
}
</SCRIPT>
</BODY>

1003
How can I reduce the space/area being occupied by non-working units days or hours (method 1)

<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
function Init()
{
	G2antt1.BeginUpdate();
	G2antt1.Columns.Add("Task");
	var var_Chart = G2antt1.Chart;
		var_Chart.FirstWeekDay = 1;
		var_Chart.LevelCount = 2;
		var_Chart.FirstVisibleDate = "1/1/2001";
		var_Chart.PaneWidth(false) = 64;
		var_Chart.UnitWidthNonworking = 4;
		var_Chart.Level(1).FormatLabel = "weekday(dvalue) in (0,6) ? '' : value";
	var var_Items = G2antt1.Items;
		var h = var_Items.AddItem("Task 1");
		var_Items.AddBar(h,"Task","1/2/2001","1/4/2001","K1",null);
		var_Items.AddBar(h,"Task","1/5/2001","1/6/2001","K2",null);
		var_Items.AddBar(var_Items.AddItem("Task 2"),"Task","1/2/2001","1/4/2001","K3",null);
		var_Items.AddBar(var_Items.AddItem("Task 4"),"Task","1/2/2001","1/4/2001","K4",null);
		var_Items.ItemBar(h,"<*>",33) = 255;
	G2antt1.EndUpdate();
}
</SCRIPT>
</BODY>

1002
How can I hide the non-working units

<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
function Init()
{
	G2antt1.BeginUpdate();
	G2antt1.Columns.Add("Task");
	var var_Chart = G2antt1.Chart;
		var_Chart.FirstWeekDay = 1;
		var_Chart.LevelCount = 2;
		var_Chart.FirstVisibleDate = "1/1/2001";
		var_Chart.PaneWidth(false) = 64;
		var_Chart.ShowNonworkingUnits = false;
		var_Chart.ShowNonworkingDates = false;
		var_Chart.DrawGridLines = 2;
		var_Chart.Level(0).DrawGridLines = true;
		var_Chart.GridLineStyle = 512;
	var var_Items = G2antt1.Items;
		var h = var_Items.AddItem("Task 1");
		var_Items.AddBar(h,"Task","1/2/2001","1/4/2001","K1",null);
		var_Items.AddBar(h,"Task","1/5/2001","1/6/2001","K2",null);
		var_Items.AddBar(var_Items.AddItem("Task 2"),"Task","1/2/2001","1/4/2001","K3",null);
		var_Items.AddBar(var_Items.AddItem("Task 4"),"Task","1/2/2001","1/4/2001","K4",null);
		var_Items.ItemBar(h,"<*>",33) = 255;
	G2antt1.EndUpdate();
}
</SCRIPT>
</BODY>

1001
How can I determine that a certain bar is the topmost (zorder)

<BODY onload="Init()">
<OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
function Init()
{
	G2antt1.BeginUpdate();
	G2antt1.Columns.Add("Task");
	var var_Chart = G2antt1.Chart;
		var_Chart.PaneWidth(false) = 48;
		var_Chart.FirstVisibleDate = "12/27/2000";
		var_Chart.Bars.Item("Task").Pattern = 1;
	var var_Items = G2antt1.Items;
		var h = var_Items.AddItem("B in front");
		var_Items.AddBar(h,"Task","1/2/2001","1/6/2001","A",null);
		var_Items.AddBar(h,"Task","1/3/2001","1/5/2001","B","<fgcolor=FF0000>B</fgcolor>");
		var_Items.ItemBar(h,"B",18) = -2;
		var_Items.ItemBar(h,"B",4) = 18;
		var_Items.ItemBar(h,"B",33) = 255;
		h = var_Items.AddItem("A in back");
		var_Items.AddBar(h,"Task","1/2/2001","1/6/2001","A","<fgcolor=FF0000>A</fgcolor>");
		var_Items.ItemBar(h,"A",18) = -2;
		var_Items.ItemBar(h,"A",4) = 18;
		var_Items.ItemBar(h,"A",33) = 255;
		var_Items.AddBar(h,"Task","1/3/2001","1/5/2001","B",null);
	G2antt1.EndUpdate();
}
</SCRIPT>
</BODY>